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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 virtual int width(); | 67 virtual int width(); |
68 virtual int height(); | 68 virtual int height(); |
69 | 69 |
70 virtual bool isGLES2Compliant(); | 70 virtual bool isGLES2Compliant(); |
71 | 71 |
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 void setVisibility(bool visible); |
| 77 |
76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 79 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
78 WebGLId framebuffer, int width, int height); | 80 WebGLId framebuffer, int width, int height); |
79 | 81 |
80 virtual WebGLId getPlatformTextureId(); | 82 virtual WebGLId getPlatformTextureId(); |
81 virtual void prepareTexture(); | 83 virtual void prepareTexture(); |
82 | 84 |
83 virtual void activeTexture(WGC3Denum texture); | 85 virtual void activeTexture(WGC3Denum texture); |
84 virtual void attachShader(WebGLId program, WebGLId shader); | 86 virtual void attachShader(WebGLId program, WebGLId shader); |
85 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 87 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 495 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
494 scoped_array<uint8> scanline_; | 496 scoped_array<uint8> scanline_; |
495 void FlipVertically(uint8* framebuffer, | 497 void FlipVertically(uint8* framebuffer, |
496 unsigned int width, | 498 unsigned int width, |
497 unsigned int height); | 499 unsigned int height); |
498 #endif | 500 #endif |
499 }; | 501 }; |
500 | 502 |
501 #endif // defined(ENABLE_GPU) | 503 #endif // defined(ENABLE_GPU) |
502 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 504 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |