summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/web/PageOverlay.cpp
diff options
context:
space:
mode:
authorwangxianzhu <wangxianzhu@chromium.org>2015-10-30 11:42:50 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-30 18:44:42 +0000
commitbc449085148e77c472250047afce48ca8f0aa46d (patch)
tree5b4d91375683c1d3bc78a77ae8f6711ae5657995 /third_party/WebKit/Source/web/PageOverlay.cpp
parent899b90ef820f5fc973357d129e30431604e3a1ab (diff)
downloadchromium_src-bc449085148e77c472250047afce48ca8f0aa46d.zip
chromium_src-bc449085148e77c472250047afce48ca8f0aa46d.tar.gz
chromium_src-bc449085148e77c472250047afce48ca8f0aa46d.tar.bz2
Remove WebGraphicsContext/WebGraphicsContextImpl
We used it to pass GraphicsContext from PageOverlay to PageOverlay::Delegete implementors. Pass GraphicsContext directly. Skip cache in InspectorOverlay because view painted for the overlay may conflict with the view's real painting. BUG=536999 R=chrishtr@chromium.org TBR=dpranke@chromium.org (remove an extra include from src/components/test_runner.cc) Review URL: https://codereview.chromium.org/1412593003 Cr-Commit-Position: refs/heads/master@{#357148}
Diffstat (limited to 'third_party/WebKit/Source/web/PageOverlay.cpp')
-rw-r--r--third_party/WebKit/Source/web/PageOverlay.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp
index f39c3bc..86ae847 100644
--- a/third_party/WebKit/Source/web/PageOverlay.cpp
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp
@@ -38,7 +38,6 @@
#include "public/platform/WebLayer.h"
#include "public/web/WebViewClient.h"
#include "web/WebDevToolsAgentImpl.h"
-#include "web/WebGraphicsContextImpl.h"
#include "web/WebViewImpl.h"
namespace blink {
@@ -100,8 +99,7 @@ void PageOverlay::update()
void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& gc, GraphicsLayerPaintingPhase phase, const IntRect* inClip) const
{
ASSERT(m_layer);
- WebGraphicsContextImpl contextWrapper(gc, *this, DisplayItem::PageOverlay);
- m_delegate->paintPageOverlay(&contextWrapper, expandedIntSize(m_layer->size()));
+ m_delegate->paintPageOverlay(*this, gc, expandedIntSize(m_layer->size()));
}
String PageOverlay::debugName(const GraphicsLayer*)