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

Unified Diff: Source/core/html/canvas/WebGLDebugShaders.cpp

Issue 17230006: Implement WEBGL_shared_resources Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/WebGLDebugShaders.cpp
diff --git a/Source/core/html/canvas/WebGLDebugShaders.cpp b/Source/core/html/canvas/WebGLDebugShaders.cpp
index ea33aa231f4e078d9ace9e2e9cd09697297927f1..f8a41f85e28da3b72e14687e93e446eaad6b4a88 100644
--- a/Source/core/html/canvas/WebGLDebugShaders.cpp
+++ b/Source/core/html/canvas/WebGLDebugShaders.cpp
@@ -1,4 +1,4 @@
-/*
+ /*
Ken Russell (switch to Gerrit) 2013/06/19 03:51:24 Accidental whitespace change.
greggman 2013/06/21 19:54:21 Done.
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -60,7 +60,7 @@ String WebGLDebugShaders::getTranslatedShaderSource(WebGLShader* shader, Excepti
UNUSED_PARAM(ec);
if (isLost())
return String();
- if (!m_context->validateWebGLObject("getTranslatedShaderSource", shader))
+ if (!m_context->validateWebGLSharedObject("getTranslatedShaderSource", shader, WebGLSharedObject::ReadOnly))
return "";
return m_context->graphicsContext3D()->getExtensions()->getTranslatedShaderSourceANGLE(shader->object());
}

Powered by Google App Engine
This is Rietveld 408576698