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_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
7 | 7 |
8 #if defined(ENABLE_GPU) | 8 #if defined(ENABLE_GPU) |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 67 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
68 | 68 |
69 //---------------------------------------------------------------------- | 69 //---------------------------------------------------------------------- |
70 // WebGraphicsContext3D methods | 70 // WebGraphicsContext3D methods |
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(); | |
77 | |
78 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 76 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
79 | 77 |
80 virtual void reshape(int width, int height); | 78 virtual void reshape(int width, int height); |
81 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor); | 79 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor); |
82 | 80 |
83 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 81 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
84 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 82 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
85 WebGLId framebuffer, int width, int height); | 83 WebGLId framebuffer, int width, int height); |
86 | 84 |
87 virtual WebGLId getPlatformTextureId(); | |
88 virtual void prepareTexture(); | 85 virtual void prepareTexture(); |
89 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); | 86 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
90 | 87 |
91 virtual void activeTexture(WGC3Denum texture); | 88 virtual void activeTexture(WGC3Denum texture); |
92 virtual void attachShader(WebGLId program, WebGLId shader); | 89 virtual void attachShader(WebGLId program, WebGLId shader); |
93 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 90 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
94 const WGC3Dchar* name); | 91 const WGC3Dchar* name); |
95 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); | 92 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); |
96 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); | 93 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); |
97 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); | 94 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 void FlipVertically(uint8* framebuffer, | 598 void FlipVertically(uint8* framebuffer, |
602 unsigned int width, | 599 unsigned int width, |
603 unsigned int height); | 600 unsigned int height); |
604 }; | 601 }; |
605 | 602 |
606 } // namespace gpu | 603 } // namespace gpu |
607 } // namespace webkit | 604 } // namespace webkit |
608 | 605 |
609 #endif // defined(ENABLE_GPU) | 606 #endif // defined(ENABLE_GPU) |
610 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ | 607 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ |
OLD | NEW |