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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 virtual int width(); | 70 virtual int width(); |
71 virtual int height(); | 71 virtual int height(); |
72 | 72 |
73 virtual bool isGLES2Compliant(); | 73 virtual bool isGLES2Compliant(); |
74 | 74 |
75 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 75 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
76 | 76 |
77 virtual void reshape(int width, int height); | 77 virtual void reshape(int width, int height); |
78 | 78 |
79 virtual void setVisibility(bool visible); | |
80 | |
81 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); | 79 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); |
82 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 80 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
83 WebGLId framebuffer, int width, int height); | 81 WebGLId framebuffer, int width, int height); |
84 | 82 |
85 virtual WebGLId getPlatformTextureId(); | 83 virtual WebGLId getPlatformTextureId(); |
86 virtual void prepareTexture(); | 84 virtual void prepareTexture(); |
87 | 85 |
88 virtual void synthesizeGLError(WGC3Denum error); | 86 virtual void synthesizeGLError(WGC3Denum error); |
89 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, | 87 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, |
90 WGC3Dsizeiptr size, WGC3Denum access); | 88 WGC3Dsizeiptr size, WGC3Denum access); |
91 virtual void unmapBufferSubDataCHROMIUM(const void*); | 89 virtual void unmapBufferSubDataCHROMIUM(const void*); |
92 virtual void* mapTexSubImage2DCHROMIUM( | 90 virtual void* mapTexSubImage2DCHROMIUM( |
93 WGC3Denum target, | 91 WGC3Denum target, |
94 WGC3Dint level, | 92 WGC3Dint level, |
95 WGC3Dint xoffset, | 93 WGC3Dint xoffset, |
96 WGC3Dint yoffset, | 94 WGC3Dint yoffset, |
97 WGC3Dsizei width, | 95 WGC3Dsizei width, |
98 WGC3Dsizei height, | 96 WGC3Dsizei height, |
99 WGC3Denum format, | 97 WGC3Denum format, |
100 WGC3Denum type, | 98 WGC3Denum type, |
101 WGC3Denum access); | 99 WGC3Denum access); |
102 virtual void unmapTexSubImage2DCHROMIUM(const void*); | 100 virtual void unmapTexSubImage2DCHROMIUM(const void*); |
| 101 |
| 102 virtual void setVisibilityCHROMIUM(bool visible); |
| 103 |
103 virtual void copyTextureToParentTextureCHROMIUM( | 104 virtual void copyTextureToParentTextureCHROMIUM( |
104 WebGLId texture, WebGLId parentTexture); | 105 WebGLId texture, WebGLId parentTexture); |
105 | 106 |
106 virtual void rateLimitOffscreenContextCHROMIUM() { } | 107 virtual void rateLimitOffscreenContextCHROMIUM() { } |
107 | 108 |
108 virtual WebString getRequestableExtensionsCHROMIUM(); | 109 virtual WebString getRequestableExtensionsCHROMIUM(); |
109 virtual void requestExtensionCHROMIUM(const char*); | 110 virtual void requestExtensionCHROMIUM(const char*); |
110 | 111 |
111 virtual void blitFramebufferCHROMIUM( | 112 virtual void blitFramebufferCHROMIUM( |
112 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, | 113 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 ShHandle fragment_compiler_; | 498 ShHandle fragment_compiler_; |
498 ShHandle vertex_compiler_; | 499 ShHandle vertex_compiler_; |
499 gfx::PluginWindowHandle window_; | 500 gfx::PluginWindowHandle window_; |
500 scoped_refptr<gfx::GLShareGroup> share_group_; | 501 scoped_refptr<gfx::GLShareGroup> share_group_; |
501 }; | 502 }; |
502 | 503 |
503 } // namespace gpu | 504 } // namespace gpu |
504 } // namespace webkit | 505 } // namespace webkit |
505 | 506 |
506 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 507 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
OLD | NEW |