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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1474873003: Add alpha argument to glResizeCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 (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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 4621 matching lines...) Expand 10 before | Expand all | Expand 10 after
4632 } 4632 }
4633 const MappedTexture& mt = it->second; 4633 const MappedTexture& mt = it->second;
4634 helper_->TexSubImage2D( 4634 helper_->TexSubImage2D(
4635 mt.target, mt.level, mt.xoffset, mt.yoffset, mt.width, mt.height, 4635 mt.target, mt.level, mt.xoffset, mt.yoffset, mt.width, mt.height,
4636 mt.format, mt.type, mt.shm_id, mt.shm_offset, GL_FALSE); 4636 mt.format, mt.type, mt.shm_id, mt.shm_offset, GL_FALSE);
4637 mapped_memory_->FreePendingToken(mt.shm_memory, helper_->InsertToken()); 4637 mapped_memory_->FreePendingToken(mt.shm_memory, helper_->InsertToken());
4638 mapped_textures_.erase(it); 4638 mapped_textures_.erase(it);
4639 CheckGLError(); 4639 CheckGLError();
4640 } 4640 }
4641 4641
4642 void GLES2Implementation::ResizeCHROMIUM(GLuint width, GLuint height, 4642 void GLES2Implementation::ResizeCHROMIUM(GLuint width,
4643 float scale_factor) { 4643 GLuint height,
4644 float scale_factor,
4645 GLboolean alpha) {
4644 GPU_CLIENT_SINGLE_THREAD_CHECK(); 4646 GPU_CLIENT_SINGLE_THREAD_CHECK();
4645 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glResizeCHROMIUM(" 4647 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glResizeCHROMIUM(" << width << ", "
4646 << width << ", " << height << ", " << scale_factor << ")"); 4648 << height << ", " << scale_factor << ", " << alpha << ")");
4647 helper_->ResizeCHROMIUM(width, height, scale_factor); 4649 helper_->ResizeCHROMIUM(width, height, scale_factor, alpha);
4648 CheckGLError(); 4650 CheckGLError();
4649 } 4651 }
4650 4652
4651 const GLchar* GLES2Implementation::GetRequestableExtensionsCHROMIUM() { 4653 const GLchar* GLES2Implementation::GetRequestableExtensionsCHROMIUM() {
4652 GPU_CLIENT_SINGLE_THREAD_CHECK(); 4654 GPU_CLIENT_SINGLE_THREAD_CHECK();
4653 GPU_CLIENT_LOG("[" << GetLogPrefix() 4655 GPU_CLIENT_LOG("[" << GetLogPrefix()
4654 << "] glGetRequestableExtensionsCHROMIUM()"); 4656 << "] glGetRequestableExtensionsCHROMIUM()");
4655 TRACE_EVENT0("gpu", 4657 TRACE_EVENT0("gpu",
4656 "GLES2Implementation::GetRequestableExtensionsCHROMIUM()"); 4658 "GLES2Implementation::GetRequestableExtensionsCHROMIUM()");
4657 const char* result = NULL; 4659 const char* result = NULL;
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
6392 CheckGLError(); 6394 CheckGLError();
6393 } 6395 }
6394 6396
6395 // Include the auto-generated part of this file. We split this because it means 6397 // Include the auto-generated part of this file. We split this because it means
6396 // we can easily edit the non-auto generated parts right here in this file 6398 // we can easily edit the non-auto generated parts right here in this file
6397 // instead of having to edit some template or the code generator. 6399 // instead of having to edit some template or the code generator.
6398 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6400 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6399 6401
6400 } // namespace gles2 6402 } // namespace gles2
6401 } // namespace gpu 6403 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698