OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CONTEXT_PROVIDER_IN_PROCESS_H_ | 5 #ifndef WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ |
6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ | 6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl> | 41 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl> |
42 context3d, | 42 context3d, |
43 const std::string& debug_name); | 43 const std::string& debug_name); |
44 ~ContextProviderInProcess() override; | 44 ~ContextProviderInProcess() override; |
45 | 45 |
46 // cc_blink::ContextProviderWebContext: | 46 // cc_blink::ContextProviderWebContext: |
47 blink::WebGraphicsContext3D* WebContext3D() override; | 47 blink::WebGraphicsContext3D* WebContext3D() override; |
48 | 48 |
49 // cc::ContextProvider: | 49 // cc::ContextProvider: |
50 bool BindToCurrentThread() override; | 50 bool BindToCurrentThread() override; |
| 51 void DetachFromThread() override; |
51 Capabilities ContextCapabilities() override; | 52 Capabilities ContextCapabilities() override; |
52 ::gpu::gles2::GLES2Interface* ContextGL() override; | 53 ::gpu::gles2::GLES2Interface* ContextGL() override; |
53 ::gpu::ContextSupport* ContextSupport() override; | 54 ::gpu::ContextSupport* ContextSupport() override; |
54 class GrContext* GrContext() override; | 55 class GrContext* GrContext() override; |
55 void SetupLock() override; | 56 void SetupLock() override; |
56 base::Lock* GetLock() override; | 57 base::Lock* GetLock() override; |
57 bool IsContextLost() override; | 58 bool IsContextLost() override; |
58 void VerifyContexts() override; | 59 void VerifyContexts() override; |
59 void DeleteCachedResources() override; | 60 void DeleteCachedResources() override; |
60 bool DestroyedOnMainThread() override; | 61 bool DestroyedOnMainThread() override; |
(...skipping 24 matching lines...) Expand all Loading... |
85 | 86 |
86 cc::ContextProvider::Capabilities capabilities_; | 87 cc::ContextProvider::Capabilities capabilities_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); | 89 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace gpu | 92 } // namespace gpu |
92 } // namespace webkit | 93 } // namespace webkit |
93 | 94 |
94 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ | 95 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ |
OLD | NEW |