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

Unified Diff: cc/blink/web_layer_impl.cc

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
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl.cc
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc
index ba40a266e7526a44cc380ca84568bb8aa6ac39cb..4d4f9936b5218e6e8a129640f6e32862074bcca5 100644
--- a/cc/blink/web_layer_impl.cc
+++ b/cc/blink/web_layer_impl.cc
@@ -474,4 +474,12 @@ void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) {
layer_->SetHasWillChangeTransformHint(has_will_change);
}
+void WebLayerImpl::setPreferredRasterScale(float raster_scale) {
+ layer_->SetPreferredRasterScale(raster_scale);
+}
+
+void WebLayerImpl::clearPreferredRasterScale() {
+ layer_->ClearPreferredRasterScale();
+}
+
} // namespace cc_blink
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698