| 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 | 7 |
| 8 #if defined(ENABLE_GPU) | 8 #if defined(ENABLE_GPU) |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 virtual void consumeTextureCHROMIUM(WGC3Denum target, | 496 virtual void consumeTextureCHROMIUM(WGC3Denum target, |
| 497 const WGC3Dbyte* mailbox); | 497 const WGC3Dbyte* mailbox); |
| 498 | 498 |
| 499 virtual void insertEventMarkerEXT(const WGC3Dchar* marker); | 499 virtual void insertEventMarkerEXT(const WGC3Dchar* marker); |
| 500 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker); | 500 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker); |
| 501 virtual void popGroupMarkerEXT(); | 501 virtual void popGroupMarkerEXT(); |
| 502 | 502 |
| 503 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); | 503 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); |
| 504 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); | 504 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); |
| 505 | 505 |
| 506 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs); |
| 507 |
| 506 protected: | 508 protected: |
| 507 virtual GrGLInterface* onCreateGrGLInterface(); | 509 virtual GrGLInterface* onCreateGrGLInterface(); |
| 508 | 510 |
| 509 private: | 511 private: |
| 510 // SwapBuffers callback. | 512 // SwapBuffers callback. |
| 511 void OnSwapBuffersComplete(); | 513 void OnSwapBuffersComplete(); |
| 512 virtual void OnContextLost(); | 514 virtual void OnContextLost(); |
| 513 | 515 |
| 514 // Used to try to find bugs in code that calls gl directly through the gl api | 516 // Used to try to find bugs in code that calls gl directly through the gl api |
| 515 // instead of going through WebGraphicsContext3D. | 517 // instead of going through WebGraphicsContext3D. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 538 unsigned int width, | 540 unsigned int width, |
| 539 unsigned int height); | 541 unsigned int height); |
| 540 #endif | 542 #endif |
| 541 }; | 543 }; |
| 542 | 544 |
| 543 } // namespace gpu | 545 } // namespace gpu |
| 544 } // namespace webkit | 546 } // namespace webkit |
| 545 | 547 |
| 546 #endif // defined(ENABLE_GPU) | 548 #endif // defined(ENABLE_GPU) |
| 547 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 549 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |