OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 virtual void getQueryivEXT( | 473 virtual void getQueryivEXT( |
474 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); | 474 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); |
475 virtual void getQueryObjectuivEXT( | 475 virtual void getQueryObjectuivEXT( |
476 WebGLId query, WGC3Denum pname, WGC3Duint* params); | 476 WebGLId query, WGC3Denum pname, WGC3Duint* params); |
477 | 477 |
478 virtual void copyTextureCHROMIUM(WGC3Denum target, WebGLId source_id, | 478 virtual void copyTextureCHROMIUM(WGC3Denum target, WebGLId source_id, |
479 WebGLId dest_id, WGC3Dint level, | 479 WebGLId dest_id, WGC3Dint level, |
480 WGC3Denum internal_format); | 480 WGC3Denum internal_format); |
481 | 481 |
482 protected: | 482 protected: |
483 #if WEBKIT_USING_SKIA | |
484 virtual GrGLInterface* onCreateGrGLInterface(); | 483 virtual GrGLInterface* onCreateGrGLInterface(); |
485 #endif | |
486 | 484 |
487 private: | 485 private: |
488 // SwapBuffers callback. | 486 // SwapBuffers callback. |
489 void OnSwapBuffersComplete(); | 487 void OnSwapBuffersComplete(); |
490 virtual void OnContextLost(); | 488 virtual void OnContextLost(); |
491 | 489 |
492 // Used to try to find bugs in code that calls gl directly through the gl api | 490 // Used to try to find bugs in code that calls gl directly through the gl api |
493 // instead of going through WebGraphicsContext3D. | 491 // instead of going through WebGraphicsContext3D. |
494 void ClearContext(); | 492 void ClearContext(); |
495 | 493 |
(...skipping 20 matching lines...) Expand all Loading... |
516 unsigned int width, | 514 unsigned int width, |
517 unsigned int height); | 515 unsigned int height); |
518 #endif | 516 #endif |
519 }; | 517 }; |
520 | 518 |
521 } // namespace gpu | 519 } // namespace gpu |
522 } // namespace webkit | 520 } // namespace webkit |
523 | 521 |
524 #endif // defined(ENABLE_GPU) | 522 #endif // defined(ENABLE_GPU) |
525 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 523 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |