| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CHROME_RENDERER_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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 int width, | 354 int width, |
| 355 int height, | 355 int height, |
| 356 unsigned format, | 356 unsigned format, |
| 357 unsigned type, | 357 unsigned type, |
| 358 unsigned access); | 358 unsigned access); |
| 359 virtual void unmapTexSubImage2DCHROMIUM(const void*); | 359 virtual void unmapTexSubImage2DCHROMIUM(const void*); |
| 360 | 360 |
| 361 virtual void copyTextureToParentTextureCHROMIUM( | 361 virtual void copyTextureToParentTextureCHROMIUM( |
| 362 unsigned texture, unsigned parentTexture); | 362 unsigned texture, unsigned parentTexture); |
| 363 | 363 |
| 364 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); |
| 365 virtual void requestExtensionCHROMIUM(const char*); |
| 366 |
| 364 virtual unsigned createCompositorTexture(unsigned width, unsigned height); | 367 virtual unsigned createCompositorTexture(unsigned width, unsigned height); |
| 365 virtual void deleteCompositorTexture(unsigned parent_texture); | 368 virtual void deleteCompositorTexture(unsigned parent_texture); |
| 366 virtual void copyTextureToCompositor(unsigned texture, | 369 virtual void copyTextureToCompositor(unsigned texture, |
| 367 unsigned parent_texture); | 370 unsigned parent_texture); |
| 368 | 371 |
| 369 ggl::Context* context() { return context_; } | 372 ggl::Context* context() { return context_; } |
| 370 | 373 |
| 371 private: | 374 private: |
| 372 // The GGL context we use for OpenGL rendering. | 375 // The GGL context we use for OpenGL rendering. |
| 373 ggl::Context* context_; | 376 ggl::Context* context_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 391 scoped_ptr<uint8> scanline_; | 394 scoped_ptr<uint8> scanline_; |
| 392 void FlipVertically(uint8* framebuffer, | 395 void FlipVertically(uint8* framebuffer, |
| 393 unsigned int width, | 396 unsigned int width, |
| 394 unsigned int height); | 397 unsigned int height); |
| 395 #endif | 398 #endif |
| 396 }; | 399 }; |
| 397 | 400 |
| 398 #endif // defined(ENABLE_GPU) | 401 #endif // defined(ENABLE_GPU) |
| 399 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 402 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 400 | 403 |
| OLD | NEW |