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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h

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.h
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h
index e07ce0d0ef16feff969e8a4141cd76318f5e8f69..16a681a6dd4891f100590ad8868bdb296759fe6a 100644
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h
@@ -33,6 +33,10 @@
class SkCanvas;
+namespace gfx {
+class Rect;
+}
+
namespace blink {
class GraphicsContext;
@@ -41,6 +45,7 @@ class PaintController;
class PLATFORM_EXPORT GraphicsContextPainter {
public:
+ virtual IntRect interestRect() = 0;
virtual void paint(GraphicsContext&, const IntRect* interestRect) = 0;
virtual PaintController* paintController() = 0;
@@ -55,6 +60,8 @@ public:
explicit ContentLayerDelegate(GraphicsContextPainter*);
~ContentLayerDelegate() override;
+ gfx::Rect paintableRegion() override;
+
// WebContentLayerClient implementation.
void paintContents(WebDisplayItemList*, const WebRect& clip, WebContentLayerClient::PaintingControlSetting = PaintDefaultBehavior) override;
size_t approximateUnsharedMemoryUsage() const override;

Powered by Google App Engine
This is Rietveld 408576698