| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual int width(); | 118 virtual int width(); |
| 119 virtual int height(); | 119 virtual int height(); |
| 120 | 120 |
| 121 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 121 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
| 122 | 122 |
| 123 virtual unsigned int insertSyncPoint(); | 123 virtual unsigned int insertSyncPoint(); |
| 124 virtual void waitSyncPoint(unsigned int sync_point); | 124 virtual void waitSyncPoint(unsigned int sync_point); |
| 125 virtual void signalSyncPoint(unsigned sync_point, | 125 virtual void signalSyncPoint(unsigned sync_point, |
| 126 WebGraphicsSyncPointCallback* callback); | 126 WebGraphicsSyncPointCallback* callback); |
| 127 | 127 |
| 128 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other); |
| 129 |
| 128 virtual void reshape(int width, int height); | 130 virtual void reshape(int width, int height); |
| 129 virtual void reshapeWithScaleFactor( | 131 virtual void reshapeWithScaleFactor( |
| 130 int width, int height, float scale_factor); | 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 void prepareTexture(); | 138 virtual void prepareTexture(); |
| 137 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); | 139 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 gpu::gles2::GLES2Interface* trace_gl_; | 740 gpu::gles2::GLES2Interface* trace_gl_; |
| 739 Error last_error_; | 741 Error last_error_; |
| 740 int frame_number_; | 742 int frame_number_; |
| 741 bool bind_generates_resources_; | 743 bool bind_generates_resources_; |
| 742 bool use_echo_for_swap_ack_; | 744 bool use_echo_for_swap_ack_; |
| 743 }; | 745 }; |
| 744 | 746 |
| 745 } // namespace content | 747 } // namespace content |
| 746 | 748 |
| 747 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 749 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |