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

Unified Diff: third_party/WebKit/Source/web/WebGraphicsContextImpl.h

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
Index: third_party/WebKit/Source/web/WebGraphicsContextImpl.h
diff --git a/third_party/WebKit/Source/web/WebGraphicsContextImpl.h b/third_party/WebKit/Source/web/WebGraphicsContextImpl.h
deleted file mode 100644
index 954107656cc8dc6165d4e122bd09583e2697328b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/WebGraphicsContextImpl.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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.
-
-#ifndef WebGraphicsContextImpl_h
-#define WebGraphicsContextImpl_h
-
-#include "platform/graphics/paint/DisplayItem.h"
-#include "platform/graphics/paint/DisplayItemClient.h"
-#include "public/web/WebGraphicsContext.h"
-#include "wtf/OwnPtr.h"
-
-namespace blink {
-
-class DrawingRecorder;
-class GraphicsContext;
-
-// Wraps a blink::GraphicsContext.
-// Internal consumers can extract the underlying context (via WebGraphicsContextImpl).
-// External consumers can make a single drawing using a WebCanvas.
-class WebGraphicsContextImpl : public WebGraphicsContext {
-public:
- WebGraphicsContextImpl(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type);
- ~WebGraphicsContextImpl();
- GraphicsContext& graphicsContext() { return m_graphicsContext; }
-
- // blink::WebGraphicsContext
- WebCanvas* beginDrawing(const WebFloatRect& bounds) override;
- void endDrawing() override;
-
-private:
- GraphicsContext& m_graphicsContext;
- DisplayItemClientWrapper m_client;
- DisplayItem::Type m_type;
- OwnPtr<DrawingRecorder> m_drawingRecorder;
-#ifndef NDEBUG
- bool m_hasBegunDrawing;
-#endif
-};
-
-// Source/web/ assumes that WebGraphicsContextImpl is the only implementation.
-DEFINE_TYPE_CASTS(WebGraphicsContextImpl, WebGraphicsContext, webGraphicsContext, true, true);
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698