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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h

Issue 1790753002: Expose GLES2Interface to blink, and delete isContextLost() from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wgc3d: deps-for-tests 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/platform/graphics/gpu/Extensions3DUtil.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h b/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
index ee6298c9a7ab8bf16be11aa618fb59eb2f0519b0..0e36c32492a13f12074a38b10adf6fedccceb5f9 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
@@ -15,6 +15,12 @@
#include "wtf/text/StringHash.h"
#include "wtf/text/WTFString.h"
+namespace gpu {
+namespace gles2 {
+class GLES2Interface;
+}
+}
+
namespace blink {
class WebGraphicsContext3D;
@@ -23,8 +29,8 @@ class PLATFORM_EXPORT Extensions3DUtil final {
USING_FAST_MALLOC(Extensions3DUtil);
WTF_MAKE_NONCOPYABLE(Extensions3DUtil);
public:
- // Creates a new Extensions3DUtil. If the passed WebGraphicsContext3D has been spontaneously lost, returns null.
- static PassOwnPtr<Extensions3DUtil> create(WebGraphicsContext3D*);
+ // Creates a new Extensions3DUtil. If the passed GLES2Interface has been spontaneously lost, returns null.
+ static PassOwnPtr<Extensions3DUtil> create(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*);
~Extensions3DUtil();
bool isValid() { return m_isValid; }
@@ -36,10 +42,11 @@ public:
static bool canUseCopyTextureCHROMIUM(GLenum destTarget, GLenum destFormat, GLenum destType, GLint level);
private:
- Extensions3DUtil(WebGraphicsContext3D*);
+ Extensions3DUtil(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*);
void initializeExtensions();
WebGraphicsContext3D* m_context;
+ gpu::gles2::GLES2Interface* m_gl;
HashSet<String> m_enabledExtensions;
HashSet<String> m_requestableExtensions;
bool m_isValid;

Powered by Google App Engine
This is Rietveld 408576698