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

Unified Diff: cc/layers/layer.h

Issue 2410513002: Plumb preferred raster scale for background images from Blink to cc layers. (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
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 42af6809fa919596f51b780a7911ec5c4cfb286f..34fe2c261f0bb9b3d5fd889bc9915d44d0452a0d 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -478,6 +478,15 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
return inputs_.has_will_change_transform_hint;
}
+ void SetPreferredRasterScale(float preferred_raster_scale);
+ bool has_preferred_raster_scale() {
+ return inputs_.has_preferred_raster_scale;
+ }
+ float preferred_raster_scale() const {
+ return inputs_.preferred_raster_scale;
+ }
+ void ClearPreferredRasterScale();
+
AnimationHost* GetAnimationHost() const;
ElementListType GetElementTypeForAnimation() const;
@@ -678,6 +687,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
LayerClient* client;
base::Closure did_scroll_callback;
std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests;
+
+ bool has_preferred_raster_scale;
vmpstr 2016/10/14 21:22:33 nit: move with other bools and : 1.
chrishtr 2016/10/14 21:35:09 Done.
+ float preferred_raster_scale;
};
Layer* parent_;

Powered by Google App Engine
This is Rietveld 408576698