| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/ppb_context_3d_proxy.h" | 5 #include "ppapi/proxy/ppb_context_3d_proxy.h" |
| 6 | 6 |
| 7 #include "base/hash_tables.h" | 7 #include "base/hash_tables.h" |
| 8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
| 9 #include "gpu/command_buffer/client/gles2_implementation.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 GLenum type, | 500 GLenum type, |
| 501 GLenum access) { | 501 GLenum access) { |
| 502 return gles2_impl_->MapTexSubImage2DCHROMIUM( | 502 return gles2_impl_->MapTexSubImage2DCHROMIUM( |
| 503 target, level, xoffset, yoffset, width, height, format, type, access); | 503 target, level, xoffset, yoffset, width, height, format, type, access); |
| 504 } | 504 } |
| 505 | 505 |
| 506 void Context3D::UnmapTexSubImage2DCHROMIUM(const void* mem) { | 506 void Context3D::UnmapTexSubImage2DCHROMIUM(const void* mem) { |
| 507 gles2_impl_->UnmapTexSubImage2DCHROMIUM(mem); | 507 gles2_impl_->UnmapTexSubImage2DCHROMIUM(mem); |
| 508 } | 508 } |
| 509 | 509 |
| 510 gpu::gles2::GLES2Implementation* Context3D::GetGLES2Impl() { |
| 511 return gles2_impl(); |
| 512 } |
| 513 |
| 510 // PPB_Context3D_Proxy --------------------------------------------------------- | 514 // PPB_Context3D_Proxy --------------------------------------------------------- |
| 511 | 515 |
| 512 PPB_Context3D_Proxy::PPB_Context3D_Proxy(Dispatcher* dispatcher, | 516 PPB_Context3D_Proxy::PPB_Context3D_Proxy(Dispatcher* dispatcher, |
| 513 const void* target_interface) | 517 const void* target_interface) |
| 514 : InterfaceProxy(dispatcher, target_interface) { | 518 : InterfaceProxy(dispatcher, target_interface) { |
| 515 } | 519 } |
| 516 | 520 |
| 517 PPB_Context3D_Proxy::~PPB_Context3D_Proxy() { | 521 PPB_Context3D_Proxy::~PPB_Context3D_Proxy() { |
| 518 } | 522 } |
| 519 | 523 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 uint32_t shm_size = 0; | 714 uint32_t shm_size = 0; |
| 711 if (enter.succeeded() && | 715 if (enter.succeeded() && |
| 712 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { | 716 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { |
| 713 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); | 717 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); |
| 714 *size = shm_size; | 718 *size = shm_size; |
| 715 } | 719 } |
| 716 } | 720 } |
| 717 | 721 |
| 718 } // namespace proxy | 722 } // namespace proxy |
| 719 } // namespace pp | 723 } // namespace pp |
| OLD | NEW |