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

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..4e154ddfbabb302e73a0fd8200bd1408d1f1f49e 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,8 +45,9 @@ class PaintController;
class PLATFORM_EXPORT GraphicsContextPainter {
public:
- virtual void paint(GraphicsContext&, const IntRect* interestRect) = 0;
+ virtual void paint(GraphicsContext&, const IntRect* recorded_viewport) = 0;
virtual PaintController* paintController() = 0;
+ virtual IntRect interestRect() = 0;
protected:
virtual ~GraphicsContextPainter() { }
@@ -56,7 +61,7 @@ public:
~ContentLayerDelegate() override;
// WebContentLayerClient implementation.
- void paintContents(WebDisplayItemList*, const WebRect& clip, WebContentLayerClient::PaintingControlSetting = PaintDefaultBehavior) override;
+ void paintContents(WebDisplayItemList*, gfx::Rect* recorded_viewport, WebContentLayerClient::PaintingControlSetting = PaintDefaultBehavior) override;
size_t approximateUnsharedMemoryUsage() const override;
private:

Powered by Google App Engine
This is Rietveld 408576698