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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual int width(); | 63 virtual int width(); |
64 virtual int height(); | 64 virtual int height(); |
65 | 65 |
66 virtual bool isGLES2Compliant(); | 66 virtual bool isGLES2Compliant(); |
67 | 67 |
68 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 68 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
69 | 69 |
70 virtual void reshape(int width, int height); | 70 virtual void reshape(int width, int height); |
71 | 71 |
72 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); | 72 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); |
| 73 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 74 WebGLId framebuffer, int width, int height); |
73 | 75 |
74 virtual WebGLId getPlatformTextureId(); | 76 virtual WebGLId getPlatformTextureId(); |
75 virtual void prepareTexture(); | 77 virtual void prepareTexture(); |
76 | 78 |
77 virtual void synthesizeGLError(WGC3Denum error); | 79 virtual void synthesizeGLError(WGC3Denum error); |
78 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, | 80 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, |
79 WGC3Dsizeiptr size, WGC3Denum access); | 81 WGC3Dsizeiptr size, WGC3Denum access); |
80 virtual void unmapBufferSubDataCHROMIUM(const void*); | 82 virtual void unmapBufferSubDataCHROMIUM(const void*); |
81 virtual void* mapTexSubImage2DCHROMIUM( | 83 virtual void* mapTexSubImage2DCHROMIUM( |
82 WGC3Denum target, | 84 WGC3Denum target, |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 ShaderSourceMap shader_source_map_; | 478 ShaderSourceMap shader_source_map_; |
477 | 479 |
478 ShHandle fragment_compiler_; | 480 ShHandle fragment_compiler_; |
479 ShHandle vertex_compiler_; | 481 ShHandle vertex_compiler_; |
480 }; | 482 }; |
481 | 483 |
482 } // namespace gpu | 484 } // namespace gpu |
483 } // namespace webkit | 485 } // namespace webkit |
484 | 486 |
485 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 487 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
OLD | NEW |