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 CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 // ContextProviderWebContext implementation. | 41 // ContextProviderWebContext implementation. |
42 virtual WebGraphicsContext3DCommandBufferImpl* WebContext3D() OVERRIDE; | 42 virtual WebGraphicsContext3DCommandBufferImpl* WebContext3D() OVERRIDE; |
43 | 43 |
44 // cc::ContextProvider implementation. | 44 // cc::ContextProvider implementation. |
45 virtual bool BindToCurrentThread() OVERRIDE; | 45 virtual bool BindToCurrentThread() OVERRIDE; |
46 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; | 46 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; |
47 virtual gpu::ContextSupport* ContextSupport() OVERRIDE; | 47 virtual gpu::ContextSupport* ContextSupport() OVERRIDE; |
48 virtual class GrContext* GrContext() OVERRIDE; | 48 virtual class GrContext* GrContext() OVERRIDE; |
49 virtual void MakeGrContextCurrent() OVERRIDE; | |
50 virtual Capabilities ContextCapabilities() OVERRIDE; | 49 virtual Capabilities ContextCapabilities() OVERRIDE; |
51 virtual bool IsContextLost() OVERRIDE; | 50 virtual bool IsContextLost() OVERRIDE; |
52 virtual void VerifyContexts() OVERRIDE; | 51 virtual void VerifyContexts() OVERRIDE; |
53 virtual bool DestroyedOnMainThread() OVERRIDE; | 52 virtual bool DestroyedOnMainThread() OVERRIDE; |
54 virtual void SetLostContextCallback( | 53 virtual void SetLostContextCallback( |
55 const LostContextCallback& lost_context_callback) OVERRIDE; | 54 const LostContextCallback& lost_context_callback) OVERRIDE; |
56 virtual void SetMemoryPolicyChangedCallback( | 55 virtual void SetMemoryPolicyChangedCallback( |
57 const MemoryPolicyChangedCallback& memory_policy_changed_callback) | 56 const MemoryPolicyChangedCallback& memory_policy_changed_callback) |
58 OVERRIDE; | 57 OVERRIDE; |
59 | 58 |
(...skipping 25 matching lines...) Expand all Loading... |
85 bool leak_on_destroy_; | 84 bool leak_on_destroy_; |
86 bool destroyed_; | 85 bool destroyed_; |
87 | 86 |
88 class LostContextCallbackProxy; | 87 class LostContextCallbackProxy; |
89 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; | 88 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; |
90 }; | 89 }; |
91 | 90 |
92 } // namespace content | 91 } // namespace content |
93 | 92 |
94 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 93 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
OLD | NEW |