| 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height); | 424 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height); |
| 425 virtual void deleteCompositorTexture(WebGLId parent_texture); | 425 virtual void deleteCompositorTexture(WebGLId parent_texture); |
| 426 virtual void copyTextureToCompositor(WebGLId texture, | 426 virtual void copyTextureToCompositor(WebGLId texture, |
| 427 WebGLId parent_texture); | 427 WebGLId parent_texture); |
| 428 | 428 |
| 429 virtual void setContextLostCallback( | 429 virtual void setContextLostCallback( |
| 430 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); | 430 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); |
| 431 virtual WGC3Denum getGraphicsResetStatusARB(); | 431 virtual WGC3Denum getGraphicsResetStatusARB(); |
| 432 | 432 |
| 433 #if WEBKIT_USING_SKIA |
| 434 virtual GrGLInterface* grGLInterface(); |
| 435 #endif |
| 436 |
| 433 private: | 437 private: |
| 434 // SwapBuffers callback. | 438 // SwapBuffers callback. |
| 435 void OnSwapBuffersComplete(); | 439 void OnSwapBuffersComplete(); |
| 436 virtual void OnContextLost(); | 440 virtual void OnContextLost(); |
| 437 | 441 |
| 438 // Used to try to find bugs in code that calls gl directly through the gl api | 442 // Used to try to find bugs in code that calls gl directly through the gl api |
| 439 // instead of going through WebGraphicsContext3D. | 443 // instead of going through WebGraphicsContext3D. |
| 440 void ClearContext(); | 444 void ClearContext(); |
| 441 | 445 |
| 442 // The context we use for OpenGL rendering. | 446 // The context we use for OpenGL rendering. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 470 #endif | 474 #endif |
| 471 }; | 475 }; |
| 472 | 476 |
| 473 } // namespace gpu | 477 } // namespace gpu |
| 474 } // namespace webkit | 478 } // namespace webkit |
| 475 | 479 |
| 476 #endif // defined(ENABLE_GPU) | 480 #endif // defined(ENABLE_GPU) |
| 477 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 481 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 478 | 482 |
| 479 | 483 |
| OLD | NEW |