Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: content/browser/android/in_process/context_provider_in_process.h

Issue 1317743002: cc: Implement shared worker contexts. (v1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: surfaces_context_provider fix Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void SetupLock() override; 52 void SetupLock() override;
53 base::Lock* GetLock() override; 53 base::Lock* GetLock() override;
54 void VerifyContexts() override; 54 void VerifyContexts() override;
55 void DeleteCachedResources() override; 55 void DeleteCachedResources() override;
56 bool DestroyedOnMainThread() override; 56 bool DestroyedOnMainThread() override;
57 void SetLostContextCallback( 57 void SetLostContextCallback(
58 const LostContextCallback& lost_context_callback) override; 58 const LostContextCallback& lost_context_callback) override;
59 void SetMemoryPolicyChangedCallback( 59 void SetMemoryPolicyChangedCallback(
60 const MemoryPolicyChangedCallback& memory_policy_changed_callback) 60 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
61 override; 61 override;
62 bool HasBeenDestroyed() override;
62 63
63 void OnLostContext(); 64 void OnLostContext();
64 void InitializeCapabilities(); 65 void InitializeCapabilities();
65 66
66 base::ThreadChecker main_thread_checker_; 67 base::ThreadChecker main_thread_checker_;
67 base::ThreadChecker context_thread_checker_; 68 base::ThreadChecker context_thread_checker_;
68 69
69 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl> 70 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl>
70 context3d_; 71 context3d_;
71 scoped_ptr<GrContextForWebGraphicsContext3D> gr_context_; 72 scoped_ptr<GrContextForWebGraphicsContext3D> gr_context_;
72 73
73 LostContextCallback lost_context_callback_; 74 LostContextCallback lost_context_callback_;
74 75
75 base::Lock destroyed_lock_; 76 base::Lock destroyed_lock_;
76 bool destroyed_; 77 bool destroyed_;
77 78
78 base::Lock context_lock_; 79 base::Lock context_lock_;
79 std::string debug_name_; 80 std::string debug_name_;
80 class LostContextCallbackProxy; 81 class LostContextCallbackProxy;
81 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 82 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
82 83
83 cc::ContextProvider::Capabilities capabilities_; 84 cc::ContextProvider::Capabilities capabilities_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); 86 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess);
86 }; 87 };
87 88
88 } // namespace content 89 } // namespace content
89 90
90 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 91 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698