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

Unified Diff: gpu/command_buffer/client/gles2_implementation.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
Index: gpu/command_buffer/client/gles2_implementation.cc
===================================================================
--- gpu/command_buffer/client/gles2_implementation.cc (revision 47428)
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy)
@@ -1448,6 +1448,18 @@
result->CopyResult(params);
}
+GLboolean GLES2Implementation::CommandBufferEnable(const char* feature) {
+ typedef CommandBufferEnable::Result Result;
+ Result* result = GetResultAs<Result*>();
+ *result = 0;
+ SetBucketAsCString(kResultBucketId, feature);
+ helper_->CommandBufferEnable(
+ kResultBucketId, result_shm_id(), result_shm_offset());
+ WaitForCmd();
+ helper_->SetBucketSize(kResultBucketId, 0);
+ return *result;
+}
+
#endif // defined(GLES2_SUPPORT_CLIENT_SIDE_BUFFERS)
} // namespace gles2
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698