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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.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: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index dbd05d3fb7ee6d27c9619df102e65efd97ae131f..a0dcd7ae153413af5b46187c3943b18169376036 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -278,6 +278,9 @@ class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient,
void setHasWillChangeTransformHint(bool);
+ void setPreferredRasterScale(float);
+ void clearPreferredRasterScale();
+
protected:
String debugName(cc::Layer*) const;
bool shouldFlattenTransform() const { return m_shouldFlattenTransform; }
@@ -395,6 +398,8 @@ class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient,
std::unique_ptr<PaintController> m_paintController;
IntRect m_previousInterestRect;
+ float m_preferredRasterScale;
+ bool m_hasPreferredRasterScale;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698