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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.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: 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/DrawingBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
index 5ea2af0890567d4a1b4e16696827b2a5b2453c1b..efdb7a35882cf587fdc0def22364aa7b71e936a5 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -46,11 +46,15 @@
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
-namespace WTF {
+namespace gpu {
+namespace gles2 {
+class GLES2Interface;
+}
+}
+namespace WTF {
class ArrayBufferContents;
-
-} // namespace WTF
+}
namespace blink {
@@ -175,6 +179,7 @@ public:
protected: // For unittests
DrawingBuffer(
PassOwnPtr<WebGraphicsContext3D>,
+ gpu::gles2::GLES2Interface*,
PassOwnPtr<Extensions3DUtil>,
bool multisampleExtensionSupported,
bool discardFramebufferSupported,
@@ -299,6 +304,7 @@ private:
GLenum m_activeTextureUnit;
OwnPtr<WebGraphicsContext3D> m_context;
+ gpu::gles2::GLES2Interface* m_gl; // Lifetime is tied to the m_context.
Ken Russell (switch to Gerrit) 2016/03/15 01:53:09 Thanks for this comment. :)
OwnPtr<Extensions3DUtil> m_extensionsUtil;
IntSize m_size;
WebGraphicsContext3D::Attributes m_requestedAttributes;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/DEPS ('k') | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698