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 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual bool makeContextCurrent(); | 71 virtual bool makeContextCurrent(); |
72 | 72 |
73 virtual int width(); | 73 virtual int width(); |
74 virtual int height(); | 74 virtual int height(); |
75 | 75 |
76 virtual bool isGLES2Compliant(); | 76 virtual bool isGLES2Compliant(); |
77 | 77 |
78 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 78 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
79 | 79 |
80 virtual void reshape(int width, int height); | 80 virtual void reshape(int width, int height); |
| 81 virtual void reshapeWithScaleFactor( |
| 82 int width, int height, float scaleFactor); |
81 | 83 |
82 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); | 84 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); |
83 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 85 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
84 WebGLId framebuffer, int width, int height); | 86 WebGLId framebuffer, int width, int height); |
85 | 87 |
86 virtual WebGLId getPlatformTextureId(); | 88 virtual WebGLId getPlatformTextureId(); |
87 virtual void prepareTexture(); | 89 virtual void prepareTexture(); |
88 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); | 90 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
89 | 91 |
90 virtual void synthesizeGLError(WGC3Denum error); | 92 virtual void synthesizeGLError(WGC3Denum error); |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 ShaderSourceMap shader_source_map_; | 568 ShaderSourceMap shader_source_map_; |
567 | 569 |
568 ShHandle fragment_compiler_; | 570 ShHandle fragment_compiler_; |
569 ShHandle vertex_compiler_; | 571 ShHandle vertex_compiler_; |
570 }; | 572 }; |
571 | 573 |
572 } // namespace gpu | 574 } // namespace gpu |
573 } // namespace webkit | 575 } // namespace webkit |
574 | 576 |
575 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 577 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
OLD | NEW |