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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.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/platform/graphics/ContentLayerDelegate.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
index cbf0c830bacec21ad6b48843a1003340ee00b807..c7112b4cca5273d274c9a29820b165e7385ab3b1 100644
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -41,6 +41,7 @@
#include "public/platform/WebRect.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPicture.h"
+#include "ui/gfx/geometry/rect.h"
namespace blink {
@@ -81,6 +82,13 @@ static void paintArtifactToWebDisplayItemList(WebDisplayItemList* list, const Pa
artifact.appendToWebDisplayItemList(list);
}
+gfx::Rect ContentLayerDelegate::paintableRegion()
+{
+// fprintf(stderr, "ContentLayerDelegate::paintableRegion\n");
enne (OOO) 2015/11/18 22:39:50 <_<
chrishtr 2015/11/18 22:41:06 Done.
+ IntRect interestRect = m_painter->interestRect();
+ return gfx::Rect(interestRect.x(), interestRect.y(), interestRect.width(), interestRect.height());
+}
+
void ContentLayerDelegate::paintContents(
WebDisplayItemList* webDisplayItemList, const WebRect& clip,
WebContentLayerClient::PaintingControlSetting paintingControl)

Powered by Google App Engine
This is Rietveld 408576698