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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2745913003: Delete preferred raster bounds code. (Closed)
Patch Set: none Created 3 years, 9 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index de25773aeb57ec3998d1473cc65ccb7cd58d7999..7e642f9a342dc3e6c15a1fc1a8a5e0ecebcdb6f9 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -110,8 +110,7 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
m_contentsLayer(0),
m_contentsLayerId(0),
m_scrollableArea(nullptr),
- m_renderingContext3d(0),
- m_hasPreferredRasterBounds(false) {
+ m_renderingContext3d(0) {
#if DCHECK_IS_ON()
if (m_client)
m_client->verifyNotPainting();
@@ -150,18 +149,6 @@ void GraphicsLayer::setHasWillChangeTransformHint(bool hasWillChangeTransform) {
m_layer->layer()->setHasWillChangeTransformHint(hasWillChangeTransform);
}
-void GraphicsLayer::setPreferredRasterBounds(const IntSize& bounds) {
- m_preferredRasterBounds = bounds;
- m_hasPreferredRasterBounds = true;
- m_layer->layer()->setPreferredRasterBounds(bounds);
-}
-
-void GraphicsLayer::clearPreferredRasterBounds() {
- m_preferredRasterBounds = IntSize();
- m_hasPreferredRasterBounds = false;
- m_layer->layer()->clearPreferredRasterBounds();
-}
-
void GraphicsLayer::setParent(GraphicsLayer* layer) {
#if DCHECK_IS_ON()
DCHECK(!layer || !layer->hasAncestor(this));
@@ -679,11 +666,6 @@ std::unique_ptr<JSONObject> GraphicsLayer::layerAsJSONInternal(
m_backfaceVisibility ? "visible" : "hidden");
}
- if (m_hasPreferredRasterBounds) {
- json->setArray("preferredRasterBounds",
- sizeAsJSONArray(m_preferredRasterBounds));
- }
-
if (flags & LayerTreeIncludesDebugInfo)
json->setString("client", pointerAsString(m_client));
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698