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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 virtual int width(); | 62 virtual int width(); |
63 virtual int height(); | 63 virtual int height(); |
64 | 64 |
65 virtual bool isGLES2Compliant(); | 65 virtual bool isGLES2Compliant(); |
66 | 66 |
67 virtual bool setParentContext(WebGraphicsContext3D* parent_context); | 67 virtual bool setParentContext(WebGraphicsContext3D* parent_context); |
68 | 68 |
69 virtual void reshape(int width, int height); | 69 virtual void reshape(int width, int height); |
70 | 70 |
71 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 71 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 72 bool bind_default_framebuffer); |
72 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 73 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
73 WebGLId framebuffer, int width, int height); | 74 WebGLId framebuffer, int width, int height); |
74 | 75 |
75 virtual WebGLId getPlatformTextureId(); | 76 virtual WebGLId getPlatformTextureId(); |
76 virtual void prepareTexture(); | 77 virtual void prepareTexture(); |
77 | 78 |
78 virtual void activeTexture(WGC3Denum texture); | 79 virtual void activeTexture(WGC3Denum texture); |
79 virtual void attachShader(WebGLId program, WebGLId shader); | 80 virtual void attachShader(WebGLId program, WebGLId shader); |
80 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 81 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
81 const WGC3Dchar* name); | 82 const WGC3Dchar* name); |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 465 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
465 scoped_array<uint8> scanline_; | 466 scoped_array<uint8> scanline_; |
466 void FlipVertically(uint8* framebuffer, | 467 void FlipVertically(uint8* framebuffer, |
467 unsigned int width, | 468 unsigned int width, |
468 unsigned int height); | 469 unsigned int height); |
469 #endif | 470 #endif |
470 }; | 471 }; |
471 | 472 |
472 #endif // defined(ENABLE_GPU) | 473 #endif // defined(ENABLE_GPU) |
473 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 474 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |