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

Unified Diff: Source/web/WebPageOverlay.cpp

Issue 867063004: [Slimming Paint] Paint the inspector overlay with GraphicsLayer DisplayList. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
Index: Source/web/WebPageOverlay.cpp
diff --git a/Source/web/WebPageOverlay.cpp b/Source/web/WebPageOverlay.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..7d3260bca3e31c95ca5db44259068904d5c3b692
--- /dev/null
+++ b/Source/web/WebPageOverlay.cpp
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "public/web/WebPageOverlay.h"
+
+#include "public/platform/WebSize.h"
+#include "public/web/WebGraphicsContext.h"
+#include "third_party/skia/include/core/SkCanvas.h"
+#include "third_party/skia/include/core/SkRect.h"
+
+namespace blink {
+
+void WebPageOverlay::paintPageOverlay(WebGraphicsContext* context, const WebSize& webViewSize)
+{
+ WebFloatRect rect(0, 0, webViewSize.width, webViewSize.height);
+ WebCanvas* canvas = context->beginDrawing(rect);
+ int saveCount = canvas->save();
+ canvas->clipRect(SkRect::MakeWH(webViewSize.width, webViewSize.height));
+ paintPageOverlay(canvas);
+ canvas->restoreToCount(saveCount);
+ context->endDrawing();
+}
+
+void WebPageOverlay::paintPageOverlay(WebCanvas*)
+{
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698