| 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_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 5 #ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 namespace webkit { | 41 namespace webkit { |
| 42 namespace gpu { | 42 namespace gpu { |
| 43 | 43 |
| 44 class WebGraphicsContext3DErrorMessageCallback; | 44 class WebGraphicsContext3DErrorMessageCallback; |
| 45 | 45 |
| 46 class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl | 46 class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| 47 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { | 47 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { |
| 48 public: | 48 public: |
| 49 virtual ~WebGraphicsContext3DImpl(); | 49 virtual ~WebGraphicsContext3DImpl(); |
| 50 | 50 |
| 51 // Must be called before any of the following methods. Permanently binds to | |
| 52 // the first calling thread. Returns false if the graphics context fails to | |
| 53 // initialize. Do not call from more than one thread. | |
| 54 virtual bool InitializeOnCurrentThread() = 0; | |
| 55 | |
| 56 //---------------------------------------------------------------------- | 51 //---------------------------------------------------------------------- |
| 57 // WebGraphicsContext3D methods | 52 // WebGraphicsContext3D methods |
| 58 | 53 |
| 59 virtual uint32_t lastFlushID(); | 54 virtual uint32_t lastFlushID(); |
| 60 | 55 |
| 61 virtual unsigned int insertSyncPoint(); | 56 virtual unsigned int insertSyncPoint(); |
| 62 virtual void waitSyncPoint(unsigned int sync_point); | 57 virtual void waitSyncPoint(unsigned int sync_point); |
| 63 | 58 |
| 64 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other); | 59 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other); |
| 65 | 60 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 | 597 |
| 603 ::gpu::gles2::GLES2Interface* gl_; | 598 ::gpu::gles2::GLES2Interface* gl_; |
| 604 bool lose_context_when_out_of_memory_; | 599 bool lose_context_when_out_of_memory_; |
| 605 uint32_t flush_id_; | 600 uint32_t flush_id_; |
| 606 }; | 601 }; |
| 607 | 602 |
| 608 } // namespace gpu | 603 } // namespace gpu |
| 609 } // namespace webkit | 604 } // namespace webkit |
| 610 | 605 |
| 611 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 606 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| OLD | NEW |