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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/web/tests/sim/SimCompositor.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
index 933edec3d9fef499669e2fcce3d2c10735239b98..b34fd7280056c045dc9896a6ea0217f222335655 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
@@ -11,6 +11,7 @@
#include "core/paint/PaintLayer.h"
#include "platform/graphics/ContentLayerDelegate.h"
#include "public/platform/WebRect.h"
+#include "ui/gfx/geometry/rect.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h"
#include "web/tests/sim/SimDisplayItemList.h"
@@ -24,8 +25,9 @@ static void paintLayers(PaintLayer& layer, SimDisplayItemList& displayList)
CompositedLayerMapping* mapping = layer.compositedLayerMapping();
GraphicsLayer* graphicsLayer = mapping->mainGraphicsLayer();
if (graphicsLayer->hasTrackedPaintInvalidations()) {
+ gfx::Rect recordingViewport(0, 0, layer.size().width(), layer.size().height());
ContentLayerDelegate* delegate = graphicsLayer->contentLayerDelegateForTesting();
- delegate->paintContents(&displayList, WebRect(0, 0, layer.size().width(), layer.size().height()));
+ delegate->paintContents(&displayList, &recordingViewport);
graphicsLayer->resetTrackedPaintInvalidations();
}
}

Powered by Google App Engine
This is Rietveld 408576698