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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 1412593003: Remove WebGraphicsContext/WebGraphicsContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove another include WebGraphicsContext.h Created 5 years, 2 months 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
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | third_party/WebKit/Source/web/PageOverlay.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index 5914390d4bf2d41418cefecdc1c1173e55d755d4..d73cd21fa22b40b7bc0d4d96dae0a5a1a60421ba 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -51,10 +51,10 @@
#include "platform/ScriptForbiddenScope.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/paint/CullRect.h"
+#include "platform/graphics/paint/DisplayItemCacheSkipper.h"
#include "public/platform/Platform.h"
#include "public/platform/WebData.h"
#include "web/PageOverlay.h"
-#include "web/WebGraphicsContextImpl.h"
#include "web/WebInputEventConversion.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h"
@@ -109,12 +109,13 @@ public:
PageOverlay::Delegate::trace(visitor);
}
- void paintPageOverlay(WebGraphicsContext* context, const WebSize& webViewSize) const override
+ void paintPageOverlay(const PageOverlay&, GraphicsContext& graphicsContext, const WebSize& webViewSize) const override
{
if (m_overlay->isEmpty())
return;
- GraphicsContext& graphicsContext = toWebGraphicsContextImpl(context)->graphicsContext();
+ // Skip cache because the following paint may conflict with the view's real painting.
+ DisplayItemCacheSkipper cacheSkipper(graphicsContext);
chrishtr 2016/05/05 16:10:43 I'm encountering this again in the context of inve
Xianzhu 2016/05/05 16:27:52 The comment seems a bit misleading. The real reaso
chrishtr 2016/05/05 16:30:07 But where does this PaintController come from? Isn
Xianzhu 2016/05/05 16:47:33 Read more code and I found I misunderstood Inspect
chrishtr 2016/05/05 16:53:04 Ok I'll put up a patch to remove this then.
FrameView* view = m_overlay->overlayMainFrame()->view();
ASSERT(!view->needsLayout());
view->paint(&graphicsContext, CullRect(IntRect(0, 0, view->width(), view->height())));
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | third_party/WebKit/Source/web/PageOverlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698