Chromium Code Reviews| 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) |