dx_spritecanvashelper.cxx (79aad27f) | dx_spritecanvashelper.cxx (c809b0d3) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 188 unchanged lines hidden (view full) --- 197 // store current output area (need to tunnel that to the 198 // background, scroll, opaque and general sprite repaint 199 // routines) 200 maScrapRect = rCurrArea; 201 202 // clear area that needs to be blitted to screen beforehand 203 maUpdateRect.reset(); 204 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 188 unchanged lines hidden (view full) --- 197 // store current output area (need to tunnel that to the 198 // background, scroll, opaque and general sprite repaint 199 // routines) 200 maScrapRect = rCurrArea; 201 202 // clear area that needs to be blitted to screen beforehand 203 maUpdateRect.reset(); 204 |
205 // TODO(P1): Might be worthwile to track areas of background | 205 // TODO(P1): Might be worthwhile to track areas of background |
206 // changes, too. 207 208 // TODO(P2): Might be worthwhile to use page-flipping only if 209 // a certain percentage of screen area has changed - and 210 // compose directly to the front buffer otherwise. 211 if( !bUpdateAll && !io_bSurfaceDirty ) 212 { 213 // background has not changed, so we're free to optimize --- 165 unchanged lines hidden --- | 206 // changes, too. 207 208 // TODO(P2): Might be worthwhile to use page-flipping only if 209 // a certain percentage of screen area has changed - and 210 // compose directly to the front buffer otherwise. 211 if( !bUpdateAll && !io_bSurfaceDirty ) 212 { 213 // background has not changed, so we're free to optimize --- 165 unchanged lines hidden --- |