| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 493 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 492 scoped_array<uint8> scanline_; | 494 scoped_array<uint8> scanline_; |
| 493 void FlipVertically(uint8* framebuffer, | 495 void FlipVertically(uint8* framebuffer, |
| 494 unsigned int width, | 496 unsigned int width, |
| 495 unsigned int height); | 497 unsigned int height); |
| 496 #endif | 498 #endif |
| 497 }; | 499 }; |
| 498 | 500 |
| 499 #endif // defined(ENABLE_GPU) | 501 #endif // defined(ENABLE_GPU) |
| 500 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 502 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |