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: |