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

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: Test fix for windows Created 6 years, 6 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 CreateAndConsumeTextureCHROMIUMImmediate(GLenum target,
74 uint32_t client_id,
75 const GLbyte* _mailbox) {
76 const uint32_t size =
77 gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate::ComputeSize();
78 gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate* c =
79 GetImmediateCmdSpaceTotalSize<
80 gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate>(size);
81 if (c) {
82 c->Init(target, client_id, _mailbox);
83 }
84 }
85
73 private: 86 private:
74 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); 87 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper);
75 }; 88 };
76 89
77 } // namespace gles2 90 } // namespace gles2
78 } // namespace gpu 91 } // namespace gpu
79 92
80 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ 93 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_
81 94
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_cmd_helper_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698