| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void reshape(int width, int height); | 70 virtual void reshape(int width, int height); |
| 71 | 71 |
| 72 virtual void setVisibility(bool visible); | 72 virtual void setVisibility(bool visible); |
| 73 | 73 |
| 74 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 74 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 75 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 75 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 76 WebGLId framebuffer, int width, int height); | 76 WebGLId framebuffer, int width, int height); |
| 77 | 77 |
| 78 virtual WebGLId getPlatformTextureId(); | 78 virtual WebGLId getPlatformTextureId(); |
| 79 virtual void prepareTexture(); | 79 virtual void prepareTexture(); |
| 80 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
| 80 | 81 |
| 81 virtual void activeTexture(WGC3Denum texture); | 82 virtual void activeTexture(WGC3Denum texture); |
| 82 virtual void attachShader(WebGLId program, WebGLId shader); | 83 virtual void attachShader(WebGLId program, WebGLId shader); |
| 83 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 84 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
| 84 const WGC3Dchar* name); | 85 const WGC3Dchar* name); |
| 85 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); | 86 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); |
| 86 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); | 87 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); |
| 87 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); | 88 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); |
| 88 virtual void bindTexture(WGC3Denum target, WebGLId texture); | 89 virtual void bindTexture(WGC3Denum target, WebGLId texture); |
| 89 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, | 90 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 unsigned int width, | 480 unsigned int width, |
| 480 unsigned int height); | 481 unsigned int height); |
| 481 #endif | 482 #endif |
| 482 }; | 483 }; |
| 483 | 484 |
| 484 } // namespace gpu | 485 } // namespace gpu |
| 485 } // namespace webkit | 486 } // namespace webkit |
| 486 | 487 |
| 487 #endif // defined(ENABLE_GPU) | 488 #endif // defined(ENABLE_GPU) |
| 488 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 489 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |