| 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 protected: |
| 433 #if WEBKIT_USING_SKIA | 434 #if WEBKIT_USING_SKIA |
| 434 virtual GrGLInterface* grGLInterface(); | 435 virtual GrGLInterface* onCreateGrGLInterface(); |
| 435 #endif | 436 #endif |
| 436 | 437 |
| 437 private: | 438 private: |
| 438 // SwapBuffers callback. | 439 // SwapBuffers callback. |
| 439 void OnSwapBuffersComplete(); | 440 void OnSwapBuffersComplete(); |
| 440 virtual void OnContextLost(); | 441 virtual void OnContextLost(); |
| 441 | 442 |
| 442 // Used to try to find bugs in code that calls gl directly through the gl api | 443 // Used to try to find bugs in code that calls gl directly through the gl api |
| 443 // instead of going through WebGraphicsContext3D. | 444 // instead of going through WebGraphicsContext3D. |
| 444 void ClearContext(); | 445 void ClearContext(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 474 #endif | 475 #endif |
| 475 }; | 476 }; |
| 476 | 477 |
| 477 } // namespace gpu | 478 } // namespace gpu |
| 478 } // namespace webkit | 479 } // namespace webkit |
| 479 | 480 |
| 480 #endif // defined(ENABLE_GPU) | 481 #endif // defined(ENABLE_GPU) |
| 481 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 482 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 482 | 483 |
| 483 | 484 |
| OLD | NEW |