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

Side by Side Diff: gpu/command_buffer/client/gles2_cmd_helper.h

Issue 299043003: Adding bindless variants mailbox produce/consume (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_
7 7
8 #include "gpu/command_buffer/client/cmd_buffer_helper.h" 8 #include "gpu/command_buffer/client/cmd_buffer_helper.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void GetUniformLocationBucket( 63 void GetUniformLocationBucket(
64 GLuint program, uint32 name_bucket_id, 64 GLuint program, uint32 name_bucket_id,
65 uint32 location_shm_id, uint32 location_shm_offset) { 65 uint32 location_shm_id, uint32 location_shm_offset) {
66 gles2::cmds::GetUniformLocationBucket* c = 66 gles2::cmds::GetUniformLocationBucket* c =
67 GetCmdSpace<gles2::cmds::GetUniformLocationBucket>(); 67 GetCmdSpace<gles2::cmds::GetUniformLocationBucket>();
68 if (c) { 68 if (c) {
69 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); 69 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
70 } 70 }
71 } 71 }
72 72
73 void GetCreateAndConsumeTextureCHROMIUMBucket(
74 GLuint program, uint32 name_bucket_id,
75 uint32 location_shm_id, uint32 location_shm_offset) {
76 gles2::cmds::GetUniformLocationBucket* c =
77 GetCmdSpace<gles2::cmds::GetUniformLocationBucket>();
78 if (c) {
79 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
80 }
81 }
82
73 private: 83 private:
74 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); 84 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper);
75 }; 85 };
76 86
77 } // namespace gles2 87 } // namespace gles2
78 } // namespace gpu 88 } // namespace gpu
79 89
80 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ 90 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_
81 91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698