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

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

Issue 2849743002: Allow binding multiple textures to one DC Layer overlay. (Closed)
Patch Set: improve test Created 3 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
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 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2214 GLboolean is_clipped, 2214 GLboolean is_clipped,
2215 const GLfloat* clip_rect, 2215 const GLfloat* clip_rect,
2216 GLint z_order, 2216 GLint z_order,
2217 const GLfloat* transform) { 2217 const GLfloat* transform) {
2218 TRACE_EVENT_BINARY_EFFICIENT0( 2218 TRACE_EVENT_BINARY_EFFICIENT0(
2219 "gpu", "GLES2Trace::ScheduleDCLayerSharedStateCHROMIUM"); 2219 "gpu", "GLES2Trace::ScheduleDCLayerSharedStateCHROMIUM");
2220 gl_->ScheduleDCLayerSharedStateCHROMIUM(opacity, is_clipped, clip_rect, 2220 gl_->ScheduleDCLayerSharedStateCHROMIUM(opacity, is_clipped, clip_rect,
2221 z_order, transform); 2221 z_order, transform);
2222 } 2222 }
2223 2223
2224 void GLES2TraceImplementation::SetDCLayerTextureCHROMIUM(
2225 GLuint index,
2226 GLuint contents_texture_id) {
2227 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SetDCLayerTextureCHROMIUM");
2228 gl_->SetDCLayerTextureCHROMIUM(index, contents_texture_id);
2229 }
2230
2224 void GLES2TraceImplementation::ScheduleDCLayerCHROMIUM( 2231 void GLES2TraceImplementation::ScheduleDCLayerCHROMIUM(
2225 GLuint contents_texture_id,
2226 const GLfloat* contents_rect, 2232 const GLfloat* contents_rect,
2227 GLuint background_color, 2233 GLuint background_color,
2228 GLuint edge_aa_mask, 2234 GLuint edge_aa_mask,
2229 const GLfloat* bounds_rect, 2235 const GLfloat* bounds_rect,
2230 GLuint filter) { 2236 GLuint filter) {
2231 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ScheduleDCLayerCHROMIUM"); 2237 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ScheduleDCLayerCHROMIUM");
2232 gl_->ScheduleDCLayerCHROMIUM(contents_texture_id, contents_rect, 2238 gl_->ScheduleDCLayerCHROMIUM(contents_rect, background_color, edge_aa_mask,
2233 background_color, edge_aa_mask, bounds_rect, 2239 bounds_rect, filter);
2234 filter);
2235 } 2240 }
2236 2241
2237 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode, 2242 void GLES2TraceImplementation::MatrixLoadfCHROMIUM(GLenum matrixMode,
2238 const GLfloat* m) { 2243 const GLfloat* m) {
2239 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM"); 2244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::MatrixLoadfCHROMIUM");
2240 gl_->MatrixLoadfCHROMIUM(matrixMode, m); 2245 gl_->MatrixLoadfCHROMIUM(matrixMode, m);
2241 } 2246 }
2242 2247
2243 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { 2248 void GLES2TraceImplementation::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
2244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", 2249 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SetDrawRectangleCHROMIUM"); 2550 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SetDrawRectangleCHROMIUM");
2546 gl_->SetDrawRectangleCHROMIUM(x, y, width, height); 2551 gl_->SetDrawRectangleCHROMIUM(x, y, width, height);
2547 } 2552 }
2548 2553
2549 void GLES2TraceImplementation::SetEnableDCLayersCHROMIUM(GLboolean enabled) { 2554 void GLES2TraceImplementation::SetEnableDCLayersCHROMIUM(GLboolean enabled) {
2550 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SetEnableDCLayersCHROMIUM"); 2555 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::SetEnableDCLayersCHROMIUM");
2551 gl_->SetEnableDCLayersCHROMIUM(enabled); 2556 gl_->SetEnableDCLayersCHROMIUM(enabled);
2552 } 2557 }
2553 2558
2554 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ 2559 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698