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

Side by Side Diff: gpu/command_buffer/client/gles2_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 3311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3322 } 3322 }
3323 3323
3324 void GLES2Implementation::FlushDriverCachesCHROMIUM() { 3324 void GLES2Implementation::FlushDriverCachesCHROMIUM() {
3325 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3325 GPU_CLIENT_SINGLE_THREAD_CHECK();
3326 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFlushDriverCachesCHROMIUM(" 3326 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFlushDriverCachesCHROMIUM("
3327 << ")"); 3327 << ")");
3328 helper_->FlushDriverCachesCHROMIUM(); 3328 helper_->FlushDriverCachesCHROMIUM();
3329 CheckGLError(); 3329 CheckGLError();
3330 } 3330 }
3331 3331
3332 void GLES2Implementation::SetDCLayerTextureCHROMIUM(
3333 GLuint index,
3334 GLuint contents_texture_id) {
3335 GPU_CLIENT_SINGLE_THREAD_CHECK();
3336 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glSetDCLayerTextureCHROMIUM("
3337 << index << ", " << contents_texture_id << ")");
3338 helper_->SetDCLayerTextureCHROMIUM(index, contents_texture_id);
3339 CheckGLError();
3340 }
3341
3332 void GLES2Implementation::MatrixLoadfCHROMIUM(GLenum matrixMode, 3342 void GLES2Implementation::MatrixLoadfCHROMIUM(GLenum matrixMode,
3333 const GLfloat* m) { 3343 const GLfloat* m) {
3334 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3344 GPU_CLIENT_SINGLE_THREAD_CHECK();
3335 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glMatrixLoadfCHROMIUM(" 3345 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glMatrixLoadfCHROMIUM("
3336 << GLES2Util::GetStringMatrixMode(matrixMode) << ", " 3346 << GLES2Util::GetStringMatrixMode(matrixMode) << ", "
3337 << static_cast<const void*>(m) << ")"); 3347 << static_cast<const void*>(m) << ")");
3338 size_t count = 16; 3348 size_t count = 16;
3339 for (size_t ii = 0; ii < count; ++ii) 3349 for (size_t ii = 0; ii < count; ++ii)
3340 GPU_CLIENT_LOG("value[" << ii << "]: " << m[ii]); 3350 GPU_CLIENT_LOG("value[" << ii << "]: " << m[ii]);
3341 helper_->MatrixLoadfCHROMIUMImmediate(matrixMode, m); 3351 helper_->MatrixLoadfCHROMIUMImmediate(matrixMode, m);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
3538 3548
3539 void GLES2Implementation::SetEnableDCLayersCHROMIUM(GLboolean enabled) { 3549 void GLES2Implementation::SetEnableDCLayersCHROMIUM(GLboolean enabled) {
3540 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3550 GPU_CLIENT_SINGLE_THREAD_CHECK();
3541 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glSetEnableDCLayersCHROMIUM(" 3551 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glSetEnableDCLayersCHROMIUM("
3542 << GLES2Util::GetStringBool(enabled) << ")"); 3552 << GLES2Util::GetStringBool(enabled) << ")");
3543 helper_->SetEnableDCLayersCHROMIUM(enabled); 3553 helper_->SetEnableDCLayersCHROMIUM(enabled);
3544 CheckGLError(); 3554 CheckGLError();
3545 } 3555 }
3546 3556
3547 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3557 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698