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

Unified Diff: Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.cpp

Issue 1151163002: Oilpan: eagerly finalize WebGLRenderingContext objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add explanatory comment Created 5 years, 7 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 | « Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.cpp
diff --git a/Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.cpp b/Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.cpp
deleted file mode 100644
index b0af768a9039ecf8d6cefaf9c9de4dfc2d718760..0000000000000000000000000000000000000000
--- a/Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 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 "core/html/canvas/WebGLSharedWebGraphicsContext3D.h"
-
-#if ENABLE(OILPAN)
-#include "platform/graphics/gpu/DrawingBuffer.h"
-#include "public/platform/WebGraphicsContext3D.h"
-
-namespace blink {
-
-PassRefPtr<WebGLSharedWebGraphicsContext3D> WebGLSharedWebGraphicsContext3D::create(PassRefPtr<DrawingBuffer> buffer)
-{
- return adoptRef(new WebGLSharedWebGraphicsContext3D(buffer));
-}
-
-WebGLSharedWebGraphicsContext3D::WebGLSharedWebGraphicsContext3D(PassRefPtr<DrawingBuffer> buffer)
- : m_buffer(buffer)
-{
-}
-
-WebGLSharedWebGraphicsContext3D::~WebGLSharedWebGraphicsContext3D()
-{
- dispose();
-}
-
-void WebGLSharedWebGraphicsContext3D::dispose()
-{
- if (m_buffer) {
- m_buffer->beginDestruction();
- m_buffer.clear();
- }
-}
-
-void WebGLSharedWebGraphicsContext3D::update(PassRefPtr<DrawingBuffer> buffer)
-{
- m_buffer = buffer;
-}
-
-DrawingBuffer* WebGLSharedWebGraphicsContext3D::drawingBuffer() const
-{
- return m_buffer.get();
-}
-
-WebGraphicsContext3D* WebGLSharedWebGraphicsContext3D::webContext() const
-{
- return m_buffer ? m_buffer->context() : 0;
-}
-
-} // namespace blink
-
-#endif // ENABLE(OILPAN)
« no previous file with comments | « Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698