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

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

Issue 2257533007: Autogenerate CreateAndConsumeTextureCHROMIUM handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 (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 5693 matching lines...) Expand 10 before | Expand all | Expand 10 after
5704 GLenum target, const GLbyte* data) { 5704 GLenum target, const GLbyte* data) {
5705 GPU_CLIENT_SINGLE_THREAD_CHECK(); 5705 GPU_CLIENT_SINGLE_THREAD_CHECK();
5706 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCreateAndConsumeTextureCHROMIUM(" 5706 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCreateAndConsumeTextureCHROMIUM("
5707 << static_cast<const void*>(data) << ")"); 5707 << static_cast<const void*>(data) << ")");
5708 const Mailbox& mailbox = *reinterpret_cast<const Mailbox*>(data); 5708 const Mailbox& mailbox = *reinterpret_cast<const Mailbox*>(data);
5709 DCHECK(mailbox.Verify()) << "CreateAndConsumeTextureCHROMIUM was passed a " 5709 DCHECK(mailbox.Verify()) << "CreateAndConsumeTextureCHROMIUM was passed a "
5710 "mailbox that was not generated by " 5710 "mailbox that was not generated by "
5711 "GenMailboxCHROMIUM."; 5711 "GenMailboxCHROMIUM.";
5712 GLuint client_id; 5712 GLuint client_id;
5713 GetIdHandler(id_namespaces::kTextures)->MakeIds(this, 0, 1, &client_id); 5713 GetIdHandler(id_namespaces::kTextures)->MakeIds(this, 0, 1, &client_id);
5714 helper_->CreateAndConsumeTextureCHROMIUMImmediate(target, 5714 helper_->CreateAndConsumeTextureINTERNALImmediate(target,
5715 client_id, data); 5715 client_id, data);
5716 if (share_group_->bind_generates_resource()) 5716 if (share_group_->bind_generates_resource())
5717 helper_->CommandBufferHelper::Flush(); 5717 helper_->CommandBufferHelper::Flush();
5718 CheckGLError(); 5718 CheckGLError();
5719 return client_id; 5719 return client_id;
5720 } 5720 }
5721 5721
5722 void GLES2Implementation::PushGroupMarkerEXT( 5722 void GLES2Implementation::PushGroupMarkerEXT(
5723 GLsizei length, const GLchar* marker) { 5723 GLsizei length, const GLchar* marker) {
5724 GPU_CLIENT_SINGLE_THREAD_CHECK(); 5724 GPU_CLIENT_SINGLE_THREAD_CHECK();
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
6909 cached_extensions_.clear(); 6909 cached_extensions_.clear();
6910 } 6910 }
6911 6911
6912 // Include the auto-generated part of this file. We split this because it means 6912 // Include the auto-generated part of this file. We split this because it means
6913 // we can easily edit the non-auto generated parts right here in this file 6913 // we can easily edit the non-auto generated parts right here in this file
6914 // instead of having to edit some template or the code generator. 6914 // instead of having to edit some template or the code generator.
6915 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6915 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6916 6916
6917 } // namespace gles2 6917 } // namespace gles2
6918 } // namespace gpu 6918 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698