| 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_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 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 buffer_size); | 72 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 73 virtual bool readBackFramebuffer(unsigned char* pixels, int width, |
| 74 int height, size_t bufferSize, |
| 75 WebGLId framebuffer); |
| 73 | 76 |
| 74 virtual WebGLId getPlatformTextureId(); | 77 virtual WebGLId getPlatformTextureId(); |
| 75 virtual void prepareTexture(); | 78 virtual void prepareTexture(); |
| 76 | 79 |
| 77 virtual void activeTexture(WGC3Denum texture); | 80 virtual void activeTexture(WGC3Denum texture); |
| 78 virtual void attachShader(WebGLId program, WebGLId shader); | 81 virtual void attachShader(WebGLId program, WebGLId shader); |
| 79 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 82 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
| 80 const WGC3Dchar* name); | 83 const WGC3Dchar* name); |
| 81 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); | 84 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); |
| 82 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); | 85 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 #endif | 471 #endif |
| 469 }; | 472 }; |
| 470 | 473 |
| 471 } // namespace gpu | 474 } // namespace gpu |
| 472 } // namespace webkit | 475 } // namespace webkit |
| 473 | 476 |
| 474 #endif // defined(ENABLE_GPU) | 477 #endif // defined(ENABLE_GPU) |
| 475 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 478 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 476 | 479 |
| 477 | 480 |
| OLD | NEW |