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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLObject.h

Issue 1815803003: Move simple methods [T-Z] from WebGraphicsContext3D to GLES2Interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-fplus
Patch Set: Created 4 years, 9 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/modules/webgl/WebGLObject.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLObject.h b/third_party/WebKit/Source/modules/webgl/WebGLObject.h
index 2c1dcd47339620d5761eba44861ab9e6c5b87920..b581e326c8afdb0a5610d965c6bf49638bf22fb0 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLObject.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLObject.h
@@ -35,6 +35,12 @@ namespace blink {
class WebGraphicsContext3D;
}
+namespace gpu {
+namespace gles2 {
+class GLES2Interface;
+}
+}
+
namespace blink {
class WebGLContextGroup;
@@ -53,10 +59,10 @@ public:
// deleteObject may not always delete the OpenGL resource. For programs and
// shaders, deletion is delayed until they are no longer attached.
// FIXME: revisit this when resource sharing between contexts are implemented.
- void deleteObject(WebGraphicsContext3D*);
+ void deleteObject(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*);
void onAttached() { ++m_attachmentCount; }
- void onDetached(WebGraphicsContext3D*);
+ void onDetached(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*);
// This indicates whether the client side issue a delete call already, not
// whether the OpenGL resource is deleted.
@@ -74,7 +80,7 @@ protected:
// deleteObjectImpl should be only called once to delete the OpenGL resource.
// After calling deleteObjectImpl, hasObject() should return false.
- virtual void deleteObjectImpl(blink::WebGraphicsContext3D*) = 0;
+ virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, gpu::gles2::GLES2Interface*) = 0;
virtual bool hasGroupOrContext() const = 0;

Powered by Google App Engine
This is Rietveld 408576698