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

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

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
Index: Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.h
diff --git a/Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.h b/Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.h
deleted file mode 100644
index 32e78ed0e2557c6e70cdf6fcdfff0e1572bb9325..0000000000000000000000000000000000000000
--- a/Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.h
+++ /dev/null
@@ -1,48 +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.
-
-#ifndef WebGLSharedWebGraphicsContext3D_h
-#define WebGLSharedWebGraphicsContext3D_h
-
-#include "wtf/Forward.h"
-#include "wtf/RefCounted.h"
-#include "wtf/RefPtr.h"
-
-namespace blink {
-
-class WebGraphicsContext3D;
-class DrawingBuffer;
-
-#if ENABLE(OILPAN)
-// The attached WebGLContextObjects are finalized using the
-// WebGraphicsContext3D object of this object's DrawingBuffer.
-// Naturally the DrawingBuffer must then be kept alive until those
-// finalizers have run. With Oilpan, accomplish that by having the
-// WebGLContextObjects keep a RefPtr<> to an off-heap object that
-// safely handles the eventual release of the underlying
-// DrawingBuffer.
-class WebGLSharedWebGraphicsContext3D final : public RefCounted<WebGLSharedWebGraphicsContext3D> {
-public:
- static PassRefPtr<WebGLSharedWebGraphicsContext3D> create(PassRefPtr<DrawingBuffer>);
-
- ~WebGLSharedWebGraphicsContext3D();
-
- // Disposing and updating the underlying DrawingBuffer;
- // needed when handling loss and restoration of graphics contexts.
- void dispose();
- void update(PassRefPtr<DrawingBuffer>);
-
- DrawingBuffer* drawingBuffer() const;
-
- WebGraphicsContext3D* webContext() const;
-private:
- explicit WebGLSharedWebGraphicsContext3D(PassRefPtr<DrawingBuffer>);
-
- RefPtr<DrawingBuffer> m_buffer;
-};
-#endif
-
-} // namespace blink
-
-#endif // WebGLSharedWebGraphicsContext3D_h
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | Source/core/html/canvas/WebGLSharedWebGraphicsContext3D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698