| OLD | NEW |
| 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 15757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15768 GLenum internal_format, | 15768 GLenum internal_format, |
| 15769 GLsizei width, | 15769 GLsizei width, |
| 15770 GLsizei height, | 15770 GLsizei height, |
| 15771 GLsizei depth) { | 15771 GLsizei depth) { |
| 15772 TRACE_EVENT2("gpu", "GLES2DecoderImpl::DoTexStorage3D", | 15772 TRACE_EVENT2("gpu", "GLES2DecoderImpl::DoTexStorage3D", |
| 15773 "widthXheight", width * height, "depth", depth); | 15773 "widthXheight", width * height, "depth", depth); |
| 15774 TexStorageImpl(target, levels, internal_format, width, height, depth, | 15774 TexStorageImpl(target, levels, internal_format, width, height, depth, |
| 15775 ContextState::k3D, "glTexStorage3D"); | 15775 ContextState::k3D, "glTexStorage3D"); |
| 15776 } | 15776 } |
| 15777 | 15777 |
| 15778 error::Error GLES2DecoderImpl::HandleGenMailboxCHROMIUM( | |
| 15779 uint32_t immediate_data_size, | |
| 15780 const void* cmd_data) { | |
| 15781 return error::kUnknownCommand; | |
| 15782 } | |
| 15783 | |
| 15784 void GLES2DecoderImpl::DoProduceTextureCHROMIUM(GLenum target, | 15778 void GLES2DecoderImpl::DoProduceTextureCHROMIUM(GLenum target, |
| 15785 const GLbyte* data) { | 15779 const GLbyte* data) { |
| 15786 TRACE_EVENT2("gpu", "GLES2DecoderImpl::DoProduceTextureCHROMIUM", | 15780 TRACE_EVENT2("gpu", "GLES2DecoderImpl::DoProduceTextureCHROMIUM", |
| 15787 "context", logger_.GetLogPrefix(), | 15781 "context", logger_.GetLogPrefix(), |
| 15788 "mailbox[0]", static_cast<unsigned char>(data[0])); | 15782 "mailbox[0]", static_cast<unsigned char>(data[0])); |
| 15789 | 15783 |
| 15790 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget( | 15784 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget( |
| 15791 &state_, target); | 15785 &state_, target); |
| 15792 ProduceTextureRef("glProduceTextureCHROMIUM", false, texture_ref, target, | 15786 ProduceTextureRef("glProduceTextureCHROMIUM", false, texture_ref, target, |
| 15793 data); | 15787 data); |
| (...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17713 } | 17707 } |
| 17714 | 17708 |
| 17715 // Include the auto-generated part of this file. We split this because it means | 17709 // Include the auto-generated part of this file. We split this because it means |
| 17716 // we can easily edit the non-auto generated parts right here in this file | 17710 // we can easily edit the non-auto generated parts right here in this file |
| 17717 // instead of having to edit some template or the code generator. | 17711 // instead of having to edit some template or the code generator. |
| 17718 #include "base/macros.h" | 17712 #include "base/macros.h" |
| 17719 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 17713 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 17720 | 17714 |
| 17721 } // namespace gles2 | 17715 } // namespace gles2 |
| 17722 } // namespace gpu | 17716 } // namespace gpu |
| OLD | NEW |