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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 GLenum type, | 505 GLenum type, |
506 GLenum access) { | 506 GLenum access) { |
507 return gles2_impl_->MapTexSubImage2DCHROMIUM( | 507 return gles2_impl_->MapTexSubImage2DCHROMIUM( |
508 target, level, xoffset, yoffset, width, height, format, type, access); | 508 target, level, xoffset, yoffset, width, height, format, type, access); |
509 } | 509 } |
510 | 510 |
511 void Context3D::UnmapTexSubImage2DCHROMIUM(const void* mem) { | 511 void Context3D::UnmapTexSubImage2DCHROMIUM(const void* mem) { |
512 gles2_impl_->UnmapTexSubImage2DCHROMIUM(mem); | 512 gles2_impl_->UnmapTexSubImage2DCHROMIUM(mem); |
513 } | 513 } |
514 | 514 |
| 515 gpu::gles2::GLES2Implementation* Context3D::GetGLES2Impl() { |
| 516 return gles2_impl(); |
| 517 } |
| 518 |
515 // PPB_Context3D_Proxy --------------------------------------------------------- | 519 // PPB_Context3D_Proxy --------------------------------------------------------- |
516 | 520 |
517 PPB_Context3D_Proxy::PPB_Context3D_Proxy(Dispatcher* dispatcher, | 521 PPB_Context3D_Proxy::PPB_Context3D_Proxy(Dispatcher* dispatcher, |
518 const void* target_interface) | 522 const void* target_interface) |
519 : InterfaceProxy(dispatcher, target_interface) { | 523 : InterfaceProxy(dispatcher, target_interface) { |
520 } | 524 } |
521 | 525 |
522 PPB_Context3D_Proxy::~PPB_Context3D_Proxy() { | 526 PPB_Context3D_Proxy::~PPB_Context3D_Proxy() { |
523 } | 527 } |
524 | 528 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 uint32_t shm_size = 0; | 719 uint32_t shm_size = 0; |
716 if (enter.succeeded() && | 720 if (enter.succeeded() && |
717 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { | 721 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { |
718 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); | 722 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); |
719 *size = shm_size; | 723 *size = shm_size; |
720 } | 724 } |
721 } | 725 } |
722 | 726 |
723 } // namespace proxy | 727 } // namespace proxy |
724 } // namespace pp | 728 } // namespace pp |
OLD | NEW |