| 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 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // graphics context fails to create. Do not call from more than one thread. | 144 // graphics context fails to create. Do not call from more than one thread. |
| 145 virtual bool makeContextCurrent(); | 145 virtual bool makeContextCurrent(); |
| 146 | 146 |
| 147 virtual int width(); | 147 virtual int width(); |
| 148 virtual int height(); | 148 virtual int height(); |
| 149 | 149 |
| 150 virtual bool isGLES2Compliant(); | 150 virtual bool isGLES2Compliant(); |
| 151 | 151 |
| 152 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 152 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
| 153 | 153 |
| 154 virtual unsigned int insertSyncPoint(); | 154 virtual unsigned int insertSyncPoint() OVERRIDE; |
| 155 virtual void waitSyncPoint(unsigned int); | 155 virtual void waitSyncPoint(unsigned int); |
| 156 | 156 |
| 157 virtual void reshape(int width, int height); | 157 virtual void reshape(int width, int height); |
| 158 | 158 |
| 159 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 159 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 160 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 160 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 161 WebGLId framebuffer, int width, int height); | 161 WebGLId framebuffer, int width, int height); |
| 162 | 162 |
| 163 virtual WebGLId getPlatformTextureId(); | 163 virtual WebGLId getPlatformTextureId(); |
| 164 virtual void prepareTexture(); | 164 virtual void prepareTexture(); |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 gpu::gles2::GLES2CmdHelper* gles2_helper_; | 710 gpu::gles2::GLES2CmdHelper* gles2_helper_; |
| 711 gpu::TransferBuffer* transfer_buffer_; | 711 gpu::TransferBuffer* transfer_buffer_; |
| 712 gpu::gles2::GLES2Implementation* gl_; | 712 gpu::gles2::GLES2Implementation* gl_; |
| 713 Error last_error_; | 713 Error last_error_; |
| 714 int frame_number_; | 714 int frame_number_; |
| 715 bool bind_generates_resources_; | 715 bool bind_generates_resources_; |
| 716 bool use_echo_for_swap_ack_; | 716 bool use_echo_for_swap_ack_; |
| 717 }; | 717 }; |
| 718 | 718 |
| 719 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 719 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |