| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual bool isGLES2Compliant(); | 121 virtual bool isGLES2Compliant(); |
| 122 | 122 |
| 123 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 123 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
| 124 | 124 |
| 125 virtual unsigned int insertSyncPoint(); | 125 virtual unsigned int insertSyncPoint(); |
| 126 virtual void waitSyncPoint(unsigned int sync_point); | 126 virtual void waitSyncPoint(unsigned int sync_point); |
| 127 virtual void signalSyncPoint(unsigned sync_point, | 127 virtual void signalSyncPoint(unsigned sync_point, |
| 128 WebGraphicsSyncPointCallback* callback); | 128 WebGraphicsSyncPointCallback* callback); |
| 129 | 129 |
| 130 virtual void reshape(int width, int height); | 130 virtual void reshape(int width, int height); |
| 131 virtual void reshapeWithScaleFactor( |
| 132 int width, int height, float scale_factor); |
| 131 | 133 |
| 132 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 134 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 133 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 135 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 134 WebGLId framebuffer, int width, int height); | 136 WebGLId framebuffer, int width, int height); |
| 135 | 137 |
| 136 virtual WebGLId getPlatformTextureId(); | 138 virtual WebGLId getPlatformTextureId(); |
| 137 virtual void prepareTexture(); | 139 virtual void prepareTexture(); |
| 138 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); | 140 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
| 139 | 141 |
| 140 virtual void activeTexture(WGC3Denum texture); | 142 virtual void activeTexture(WGC3Denum texture); |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 gpu::gles2::GLES2Interface* trace_gl_; | 741 gpu::gles2::GLES2Interface* trace_gl_; |
| 740 Error last_error_; | 742 Error last_error_; |
| 741 int frame_number_; | 743 int frame_number_; |
| 742 bool bind_generates_resources_; | 744 bool bind_generates_resources_; |
| 743 bool use_echo_for_swap_ack_; | 745 bool use_echo_for_swap_ack_; |
| 744 }; | 746 }; |
| 745 | 747 |
| 746 } // namespace content | 748 } // namespace content |
| 747 | 749 |
| 748 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 750 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |