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

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

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 } 806 }
807 } 807 }
808 808
809 void Hint(GLenum target, GLenum mode) { 809 void Hint(GLenum target, GLenum mode) {
810 gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>(); 810 gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>();
811 if (c) { 811 if (c) {
812 c->Init(target, mode); 812 c->Init(target, mode);
813 } 813 }
814 } 814 }
815 815
816 void InvalidateFramebufferImmediate(GLenum target,
817 GLsizei count,
818 const GLenum* attachments) {
819 const uint32_t size =
820 gles2::cmds::InvalidateFramebufferImmediate::ComputeSize(count);
821 gles2::cmds::InvalidateFramebufferImmediate* c =
822 GetImmediateCmdSpaceTotalSize<
823 gles2::cmds::InvalidateFramebufferImmediate>(size);
824 if (c) {
825 c->Init(target, count, attachments);
826 }
827 }
828
829 void InvalidateSubFramebufferImmediate(GLenum target,
830 GLsizei count,
831 const GLenum* attachments,
832 GLint x,
833 GLint y,
834 GLsizei width,
835 GLsizei height) {
836 const uint32_t size =
837 gles2::cmds::InvalidateSubFramebufferImmediate::ComputeSize(count);
838 gles2::cmds::InvalidateSubFramebufferImmediate* c =
839 GetImmediateCmdSpaceTotalSize<
840 gles2::cmds::InvalidateSubFramebufferImmediate>(size);
841 if (c) {
842 c->Init(target, count, attachments, x, y, width, height);
843 }
844 }
845
816 void IsBuffer(GLuint buffer, 846 void IsBuffer(GLuint buffer,
817 uint32_t result_shm_id, 847 uint32_t result_shm_id,
818 uint32_t result_shm_offset) { 848 uint32_t result_shm_offset) {
819 gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>(); 849 gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>();
820 if (c) { 850 if (c) {
821 c->Init(buffer, result_shm_id, result_shm_offset); 851 c->Init(buffer, result_shm_id, result_shm_offset);
822 } 852 }
823 } 853 }
824 854
825 void IsEnabled(GLenum cap, uint32_t result_shm_id, uint32_t result_shm_offset) { 855 void IsEnabled(GLenum cap, uint32_t result_shm_id, uint32_t result_shm_offset) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 } 925 }
896 } 926 }
897 927
898 void PolygonOffset(GLfloat factor, GLfloat units) { 928 void PolygonOffset(GLfloat factor, GLfloat units) {
899 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>(); 929 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>();
900 if (c) { 930 if (c) {
901 c->Init(factor, units); 931 c->Init(factor, units);
902 } 932 }
903 } 933 }
904 934
935 void ReadBuffer(GLenum src) {
936 gles2::cmds::ReadBuffer* c = GetCmdSpace<gles2::cmds::ReadBuffer>();
937 if (c) {
938 c->Init(src);
939 }
940 }
941
905 void ReadPixels(GLint x, 942 void ReadPixels(GLint x,
906 GLint y, 943 GLint y,
907 GLsizei width, 944 GLsizei width,
908 GLsizei height, 945 GLsizei height,
909 GLenum format, 946 GLenum format,
910 GLenum type, 947 GLenum type,
911 uint32_t pixels_shm_id, 948 uint32_t pixels_shm_id,
912 uint32_t pixels_shm_offset, 949 uint32_t pixels_shm_offset,
913 uint32_t result_shm_id, 950 uint32_t result_shm_id,
914 uint32_t result_shm_offset, 951 uint32_t result_shm_offset,
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2146 } 2183 }
2147 2184
2148 void BlendBarrierKHR() { 2185 void BlendBarrierKHR() {
2149 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); 2186 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
2150 if (c) { 2187 if (c) {
2151 c->Init(); 2188 c->Init();
2152 } 2189 }
2153 } 2190 }
2154 2191
2155 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2192 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698