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

Unified Diff: content/common/gpu/client/gl_helper_scaling.h

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: . 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: content/common/gpu/client/gl_helper_scaling.h
diff --git a/content/common/gpu/client/gl_helper_scaling.h b/content/common/gpu/client/gl_helper_scaling.h
index af7b7fc49940c3e83e9799af97981d08a325c7d7..86eeaa30821db2bd58824a33e34318e0d649d1e3 100644
--- a/content/common/gpu/client/gl_helper_scaling.h
+++ b/content/common/gpu/client/gl_helper_scaling.h
@@ -52,6 +52,7 @@ class CONTENT_EXPORT GLHelperScaling {
typedef std::pair<ShaderType, bool> ShaderProgramKeyType;
GLHelperScaling(gpu::gles2::GLES2Interface* gl,
+ gpu::ContextSupport* context_support,
GLHelper* helper);
~GLHelperScaling();
void InitBuffer();
@@ -191,6 +192,7 @@ class CONTENT_EXPORT GLHelperScaling {
static const GLfloat kVertexAttributes[];
gpu::gles2::GLES2Interface* gl_;
+ gpu::ContextSupport* context_support_;
GLHelper* helper_;
// The buffer that holds the vertices and the texture coordinates data for

Powered by Google App Engine
This is Rietveld 408576698