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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 290573007: cc: Move gpu rasterization flag from tree-impl to tree-host-impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated unittests Created 6 years, 7 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
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 80d09dde721ad2e533c11d819f4241e986c6327c..bbf5030ba2a0b7ce4d6ee6f8f7a5e37600f91bac 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -132,10 +132,6 @@ class CC_EXPORT PictureLayerImpl
virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE;
- bool use_gpu_rasterization() const {
- return layer_tree_impl()->use_gpu_rasterization();
- }
-
// Functions used by tile manager.
void DidUnregisterLayer();
PictureLayerImpl* GetTwinLayer() { return twin_layer_; }
@@ -153,7 +149,8 @@ class CC_EXPORT PictureLayerImpl
void ManageTilings(bool animating_transform_to_screen,
float maximum_animation_contents_scale);
bool ShouldHaveLowResTiling() const {
- return should_use_low_res_tiling_ && !use_gpu_rasterization();
+ return should_use_low_res_tiling_ &&
+ !layer_tree_impl()->use_gpu_rasterization();
}
virtual bool ShouldAdjustRasterScale(
bool animating_transform_to_screen) const;
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698