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

Unified Diff: cc/layers/layer_impl.h

Issue 2441853002: Plumb preferred raster bounds rather than scale (Closed)
Patch Set: none Created 4 years, 2 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 | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 01de99cfc84fe670b9c369bedc1cb6f1455b7012..f1f458f1ce444442e0e76122953adc0eeed7a7df 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -447,10 +447,14 @@ class CC_EXPORT LayerImpl {
return has_will_change_transform_hint_;
}
- void SetPreferredRasterScale(float raster_scale);
- bool has_preferred_raster_scale() { return has_preferred_raster_scale_; }
- float preferred_raster_scale() const { return preferred_raster_scale_; }
- void ClearPreferredRasterScale();
+ void SetPreferredRasterBounds(const gfx::Size& preferred_raster_bounds);
+ bool has_preferred_raster_bounds() const {
+ return has_preferred_raster_bounds_;
+ }
+ const gfx::Size& preferred_raster_scale() const {
+ return preferred_raster_bounds_;
+ }
+ void ClearPreferredRasterBounds();
AnimationHost* GetAnimationHost() const;
@@ -568,9 +572,9 @@ class CC_EXPORT LayerImpl {
owned_debug_info_;
base::trace_event::ConvertableToTraceFormat* debug_info_;
std::unique_ptr<RenderSurfaceImpl> render_surface_;
- float preferred_raster_scale_;
+ gfx::Size preferred_raster_bounds_;
- bool has_preferred_raster_scale_ : 1;
+ bool has_preferred_raster_bounds_ : 1;
bool scrolls_drawn_descendant_ : 1;
bool has_will_change_transform_hint_ : 1;
bool needs_push_properties_ : 1;
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698