OLD | NEW |
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 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2192 } | 2192 } |
2193 | 2193 |
2194 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() { | 2194 void GLES2TraceImplementation::DiscardBackbufferCHROMIUM() { |
2195 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM"); | 2195 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::DiscardBackbufferCHROMIUM"); |
2196 gl_->DiscardBackbufferCHROMIUM(); | 2196 gl_->DiscardBackbufferCHROMIUM(); |
2197 } | 2197 } |
2198 | 2198 |
2199 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM( | 2199 void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM( |
2200 GLint plane_z_order, | 2200 GLint plane_z_order, |
2201 GLenum plane_transform, | 2201 GLenum plane_transform, |
| 2202 GLuint storage_format, |
2202 GLuint overlay_texture_id, | 2203 GLuint overlay_texture_id, |
2203 GLint bounds_x, | 2204 GLint bounds_x, |
2204 GLint bounds_y, | 2205 GLint bounds_y, |
2205 GLint bounds_width, | 2206 GLint bounds_width, |
2206 GLint bounds_height, | 2207 GLint bounds_height, |
2207 GLfloat uv_x, | 2208 GLfloat uv_x, |
2208 GLfloat uv_y, | 2209 GLfloat uv_y, |
2209 GLfloat uv_width, | 2210 GLfloat uv_width, |
2210 GLfloat uv_height) { | 2211 GLfloat uv_height, |
| 2212 GLboolean handle_scaling) { |
2211 TRACE_EVENT_BINARY_EFFICIENT0("gpu", | 2213 TRACE_EVENT_BINARY_EFFICIENT0("gpu", |
2212 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM"); | 2214 "GLES2Trace::ScheduleOverlayPlaneCHROMIUM"); |
2213 gl_->ScheduleOverlayPlaneCHROMIUM( | 2215 gl_->ScheduleOverlayPlaneCHROMIUM( |
2214 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, | 2216 plane_z_order, plane_transform, storage_format, overlay_texture_id, |
2215 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); | 2217 bounds_x, bounds_y, bounds_width, bounds_height, uv_x, uv_y, uv_width, |
| 2218 uv_height, handle_scaling); |
2216 } | 2219 } |
2217 | 2220 |
2218 void GLES2TraceImplementation::ScheduleCALayerCHROMIUM( | 2221 void GLES2TraceImplementation::ScheduleCALayerCHROMIUM( |
2219 GLuint contents_texture_id, | 2222 GLuint contents_texture_id, |
2220 const GLfloat* contents_rect, | 2223 const GLfloat* contents_rect, |
2221 GLfloat opacity, | 2224 GLfloat opacity, |
2222 const GLuint background_color, | 2225 const GLuint background_color, |
2223 const GLfloat* bounds_size, | 2226 const GLfloat* bounds_size, |
2224 const GLfloat* transform) { | 2227 const GLfloat* transform) { |
2225 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ScheduleCALayerCHROMIUM"); | 2228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ScheduleCALayerCHROMIUM"); |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2498 gl_->BindFragDataLocationEXT(program, colorNumber, name); | 2501 gl_->BindFragDataLocationEXT(program, colorNumber, name); |
2499 } | 2502 } |
2500 | 2503 |
2501 GLint GLES2TraceImplementation::GetFragDataIndexEXT(GLuint program, | 2504 GLint GLES2TraceImplementation::GetFragDataIndexEXT(GLuint program, |
2502 const char* name) { | 2505 const char* name) { |
2503 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataIndexEXT"); | 2506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetFragDataIndexEXT"); |
2504 return gl_->GetFragDataIndexEXT(program, name); | 2507 return gl_->GetFragDataIndexEXT(program, name); |
2505 } | 2508 } |
2506 | 2509 |
2507 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 2510 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |