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

Unified Diff: chrome/renderer/ggl/ggl.cc

Issue 2127001: Makes shader translation a runtime switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/renderer/ggl/ggl.h ('k') | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/ggl/ggl.cc
===================================================================
--- chrome/renderer/ggl/ggl.cc (revision 47287)
+++ chrome/renderer/ggl/ggl.cc (working copy)
@@ -18,6 +18,7 @@
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/gles2_lib.h"
#include "gpu/command_buffer/common/constants.h"
+#include "gpu/GLES2/gles2_command_buffer.h"
#endif // ENABLE_GPU
namespace ggl {
@@ -82,6 +83,9 @@
// Get the current error code.
Error GetError();
+ // TODO(gman): Remove this.
+ void DisableShaderTranslation();
+
private:
scoped_refptr<GpuChannelHost> channel_;
Context* parent_;
@@ -248,6 +252,11 @@
}
}
+// TODO(gman): Remove This
+void Context::DisableShaderTranslation() {
+ gles2_implementation_->CommandBufferEnable(PEPPER3D_SKIP_GLSL_TRANSLATION);
+}
+
#endif // ENABLE_GPU
Context* CreateViewContext(GpuChannelHost* channel, gfx::NativeViewId view) {
@@ -345,4 +354,12 @@
#endif
}
+// TODO(gman): Remove This
+void DisableShaderTranslation(Context* context) {
+#if defined(ENABLE_GPU)
+ if (context) {
+ context->DisableShaderTranslation();
+ }
+#endif
+}
} // namespace ggl
« no previous file with comments | « chrome/renderer/ggl/ggl.h ('k') | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698