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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.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
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 a0dcd7ae153413af5b46187c3943b18169376036..b5b2165bebb6d49ba0eace73748a1b62add44288 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -278,8 +278,9 @@ class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient,
void setHasWillChangeTransformHint(bool);
- void setPreferredRasterScale(float);
- void clearPreferredRasterScale();
+ // See comments in cc::Layer::SetPreferredRasterBounds.
+ void setPreferredRasterBounds(const IntSize&);
+ void clearPreferredRasterBounds();
protected:
String debugName(cc::Layer*) const;
@@ -398,8 +399,8 @@ class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient,
std::unique_ptr<PaintController> m_paintController;
IntRect m_previousInterestRect;
- float m_preferredRasterScale;
- bool m_hasPreferredRasterScale;
+ IntSize m_preferredRasterBounds;
+ bool m_hasPreferredRasterBounds;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698