| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 73 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
| 74 | 74 |
| 75 virtual void reshape(int width, int height); | 75 virtual void reshape(int width, int height); |
| 76 | 76 |
| 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 79 WebGLId framebuffer, int width, int height); | 79 WebGLId framebuffer, int width, int height); |
| 80 | 80 |
| 81 virtual WebGLId getPlatformTextureId(); | 81 virtual WebGLId getPlatformTextureId(); |
| 82 virtual void prepareTexture(); | 82 virtual void prepareTexture(); |
| 83 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
| 83 | 84 |
| 84 virtual void activeTexture(WGC3Denum texture); | 85 virtual void activeTexture(WGC3Denum texture); |
| 85 virtual void attachShader(WebGLId program, WebGLId shader); | 86 virtual void attachShader(WebGLId program, WebGLId shader); |
| 86 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 87 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
| 87 const WGC3Dchar* name); | 88 const WGC3Dchar* name); |
| 88 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); | 89 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); |
| 89 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); | 90 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); |
| 90 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); | 91 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); |
| 91 virtual void bindTexture(WGC3Denum target, WebGLId texture); | 92 virtual void bindTexture(WGC3Denum target, WebGLId texture); |
| 92 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, | 93 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 498 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 498 scoped_array<uint8> scanline_; | 499 scoped_array<uint8> scanline_; |
| 499 void FlipVertically(uint8* framebuffer, | 500 void FlipVertically(uint8* framebuffer, |
| 500 unsigned int width, | 501 unsigned int width, |
| 501 unsigned int height); | 502 unsigned int height); |
| 502 #endif | 503 #endif |
| 503 }; | 504 }; |
| 504 | 505 |
| 505 #endif // defined(ENABLE_GPU) | 506 #endif // defined(ENABLE_GPU) |
| 506 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 507 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |