| 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 #ifndef PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, | 69 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, |
| 70 GLint level, | 70 GLint level, |
| 71 GLint xoffset, | 71 GLint xoffset, |
| 72 GLint yoffset, | 72 GLint yoffset, |
| 73 GLsizei width, | 73 GLsizei width, |
| 74 GLsizei height, | 74 GLsizei height, |
| 75 GLenum format, | 75 GLenum format, |
| 76 GLenum type, | 76 GLenum type, |
| 77 GLenum access) OVERRIDE; | 77 GLenum access) OVERRIDE; |
| 78 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; | 78 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; |
| 79 virtual gpu::gles2::GLES2Implementation* GetGLES2Impl() OVERRIDE; |
| 79 | 80 |
| 80 bool CreateImplementation(); | 81 bool CreateImplementation(); |
| 81 | 82 |
| 82 private: | 83 private: |
| 83 Surface3D* draw_; | 84 Surface3D* draw_; |
| 84 Surface3D* read_; | 85 Surface3D* read_; |
| 85 | 86 |
| 86 scoped_ptr<gpu::CommandBuffer> command_buffer_; | 87 scoped_ptr<gpu::CommandBuffer> command_buffer_; |
| 87 scoped_ptr<gpu::gles2::GLES2CmdHelper> helper_; | 88 scoped_ptr<gpu::gles2::GLES2CmdHelper> helper_; |
| 88 int32 transfer_buffer_id_; | 89 int32 transfer_buffer_id_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void OnMsgGetTransferBuffer(const HostResource& context, | 136 void OnMsgGetTransferBuffer(const HostResource& context, |
| 136 int32 id, | 137 int32 id, |
| 137 base::SharedMemoryHandle* transfer_buffer, | 138 base::SharedMemoryHandle* transfer_buffer, |
| 138 uint32* size); | 139 uint32* size); |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace proxy | 142 } // namespace proxy |
| 142 } // namespace pp | 143 } // namespace pp |
| 143 | 144 |
| 144 #endif // PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ | 145 #endif // PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ |
| OLD | NEW |