| 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 CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 72 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
| 73 | 73 |
| 74 virtual void reshape(int width, int height); | 74 virtual void reshape(int width, int height); |
| 75 | 75 |
| 76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 78 WebGLId framebuffer, int width, int height); | 78 WebGLId framebuffer, int width, int height); |
| 79 | 79 |
| 80 virtual WebGLId getPlatformTextureId(); | 80 virtual WebGLId getPlatformTextureId(); |
| 81 virtual void prepareTexture(); | 81 virtual void prepareTexture(); |
| 82 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
| 82 | 83 |
| 83 virtual void activeTexture(WGC3Denum texture); | 84 virtual void activeTexture(WGC3Denum texture); |
| 84 virtual void attachShader(WebGLId program, WebGLId shader); | 85 virtual void attachShader(WebGLId program, WebGLId shader); |
| 85 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 86 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
| 86 const WGC3Dchar* name); | 87 const WGC3Dchar* name); |
| 87 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); | 88 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); |
| 88 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); | 89 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); |
| 89 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); | 90 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); |
| 90 virtual void bindTexture(WGC3Denum target, WebGLId texture); | 91 virtual void bindTexture(WGC3Denum target, WebGLId texture); |
| 91 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, | 92 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 514 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 514 scoped_array<uint8> scanline_; | 515 scoped_array<uint8> scanline_; |
| 515 void FlipVertically(uint8* framebuffer, | 516 void FlipVertically(uint8* framebuffer, |
| 516 unsigned int width, | 517 unsigned int width, |
| 517 unsigned int height); | 518 unsigned int height); |
| 518 #endif | 519 #endif |
| 519 }; | 520 }; |
| 520 | 521 |
| 521 #endif // defined(ENABLE_GPU) | 522 #endif // defined(ENABLE_GPU) |
| 522 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 523 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |