| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 virtual int width(); | 68 virtual int width(); |
| 69 virtual int height(); | 69 virtual int height(); |
| 70 | 70 |
| 71 virtual bool isGLES2Compliant(); | 71 virtual bool isGLES2Compliant(); |
| 72 | 72 |
| 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 void setVisibility(bool visible); |
| 78 |
| 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); | 79 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); |
| 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, | 80 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, |
| 79 WebGLId framebuffer, int width, int height); | 81 WebGLId framebuffer, int width, int height); |
| 80 | 82 |
| 81 virtual WebGLId getPlatformTextureId(); | 83 virtual WebGLId getPlatformTextureId(); |
| 82 virtual void prepareTexture(); | 84 virtual void prepareTexture(); |
| 83 | 85 |
| 84 virtual void activeTexture(WGC3Denum texture); | 86 virtual void activeTexture(WGC3Denum texture); |
| 85 virtual void attachShader(WebGLId program, WebGLId shader); | 87 virtual void attachShader(WebGLId program, WebGLId shader); |
| 86 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, | 88 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, |
| (...skipping 406 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 |