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

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

Issue 2818993002: GL Implementation for GPU Discardable
Patch Set: rebase Created 3 years, 8 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 | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 834b474f6e235ccfe64b97a2daa622f758b91014..393c27fd1be8dc3d4a0e4cf11c0de88334310bf0 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -3238,4 +3238,22 @@ void SetEnableDCLayersCHROMIUM(GLboolean enabled) {
}
}
+void InitializeDiscardableTextureCHROMIUM(GLuint texture_id,
+ uint32_t shm_id,
+ uint32_t shm_offset) {
+ gles2::cmds::InitializeDiscardableTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::InitializeDiscardableTextureCHROMIUM>();
+ if (c) {
+ c->Init(texture_id, shm_id, shm_offset);
+ }
+}
+
+void UnlockDiscardableTextureCHROMIUM(GLuint texture_id) {
+ gles2::cmds::UnlockDiscardableTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::UnlockDiscardableTextureCHROMIUM>();
+ if (c) {
+ c->Init(texture_id);
+ }
+}
+
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698