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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 10782005: Add a shallow command buffer flush that doesn't glFlush (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index d6f77231b66493c2122e91ce23c1850cca97d5b5..de3af20fecb8d5928bb9e1de21e8cc8c50ffe391 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -1055,6 +1055,14 @@ void GLES2Implementation::Flush() {
helper_->CommandBufferHelper::Flush();
}
+void GLES2Implementation::ShallowFlushCHROMIUM() {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << this << "] glShallowFlushCHROMIUM()");
+ // Flush our command buffer
+ // (tell the service to execute up to the flush cmd.)
+ helper_->CommandBufferHelper::Flush();
+}
+
void GLES2Implementation::Finish() {
GPU_CLIENT_SINGLE_THREAD_CHECK();
FinishHelper();
@@ -2120,6 +2128,7 @@ const GLubyte* GLES2Implementation::GetStringHelper(GLenum name) {
switch (name) {
case GL_EXTENSIONS:
str += std::string(str.empty() ? "" : " ") +
+ "GL_CHROMIUM_shallow_flush "
brianderson 2012/07/19 03:29:44 The extension is advertised here and I double chec
"GL_CHROMIUM_map_sub "
"GL_CHROMIUM_flipy "
"GL_EXT_unpack_subimage";

Powered by Google App Engine
This is Rietveld 408576698