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

Unified Diff: third_party/WebKit/Source/web/WebGraphicsContextImpl.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
Index: third_party/WebKit/Source/web/WebGraphicsContextImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebGraphicsContextImpl.cpp b/third_party/WebKit/Source/web/WebGraphicsContextImpl.cpp
deleted file mode 100644
index d40c99f06b8421895790a8a007fa673119036a0a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/WebGraphicsContextImpl.cpp
+++ /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.
-
-#include "config.h"
-#include "web/WebGraphicsContextImpl.h"
-
-#include "platform/graphics/GraphicsContext.h"
-#include "platform/graphics/paint/DrawingRecorder.h"
-
-namespace blink {
-
-WebGraphicsContextImpl::WebGraphicsContextImpl(GraphicsContext& graphicsContext, const DisplayItemClientWrapper& client, DisplayItem::Type type)
- : m_graphicsContext(graphicsContext)
- , m_client(client)
- , m_type(type)
-#ifndef NDEBUG
- , m_hasBegunDrawing(false)
-#endif
-{
-}
-
-WebGraphicsContextImpl::~WebGraphicsContextImpl()
-{
-}
-
-WebCanvas* WebGraphicsContextImpl::beginDrawing(const WebFloatRect& bounds)
-{
-#ifndef NDEBUG
- ASSERT(!m_hasBegunDrawing);
- m_hasBegunDrawing = true;
-#endif
- ASSERT(!DrawingRecorder::useCachedDrawingIfPossible(m_graphicsContext, m_client, m_type));
- m_drawingRecorder = adoptPtr(new DrawingRecorder(m_graphicsContext, m_client, m_type, bounds));
- WebCanvas* canvas = m_graphicsContext.canvas();
- ASSERT(canvas);
- return canvas;
-}
-
-void WebGraphicsContextImpl::endDrawing()
-{
- ASSERT(m_drawingRecorder);
- m_drawingRecorder.clear();
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698