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

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 1241433003: Rebind EGL context to flush driver caches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index ce321483c9f39f8529610a7624ce756f9ce7b6f4..27b98d3d561af7b4fb6c6b9aa62ce49147bd75d5 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2814,6 +2814,14 @@ void SwapInterval(GLint interval) {
}
}
+void FlushDriverCachesCHROMIUM() {
+ gles2::cmds::FlushDriverCachesCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::FlushDriverCachesCHROMIUM>();
+ if (c) {
+ c->Init();
+ }
+}
+
void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode, const GLfloat* m) {
const uint32_t size =
gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize();

Powered by Google App Engine
This is Rietveld 408576698