Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3078)

Unified Diff: cc/layers/picture_layer_impl.h

Issue 196473007: Add --disable-low-res-tiling. Disable low res tiling to save power. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 7f103b1f6b2dc39449997090b8efb9aaa62ae4c9..551d9ae8c4d3348c9859f325959bc2f235095619 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -90,7 +90,7 @@ class CC_EXPORT PictureLayerImpl
void SyncFromActiveLayer(const PictureLayerImpl* other);
void ManageTilings(bool animating_transform_to_screen);
bool ShouldHaveLowResTiling() const {
- return !should_use_gpu_rasterization();
+ return !should_use_gpu_rasterization() && should_use_low_res_tiling_;
enne (OOO) 2014/03/12 17:52:08 Can you make this just should_use_low_res_tiling a
}
virtual bool ShouldAdjustRasterScale(
bool animating_transform_to_screen) const;
@@ -150,6 +150,7 @@ class CC_EXPORT PictureLayerImpl
// after a CalculateContentsScale/ManageTilings.
bool should_update_tile_priorities_;
bool should_use_gpu_rasterization_;
+ bool should_use_low_res_tiling_;
friend class PictureLayer;
DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);

Powered by Google App Engine
This is Rietveld 408576698