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

Side by Side Diff: android_webview/browser/aw_render_thread_context_provider.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void SetupLock() override; 45 void SetupLock() override;
46 base::Lock* GetLock() override; 46 base::Lock* GetLock() override;
47 void VerifyContexts() override; 47 void VerifyContexts() override;
48 void DeleteCachedResources() override; 48 void DeleteCachedResources() override;
49 bool DestroyedOnMainThread() override; 49 bool DestroyedOnMainThread() override;
50 void SetLostContextCallback( 50 void SetLostContextCallback(
51 const LostContextCallback& lost_context_callback) override; 51 const LostContextCallback& lost_context_callback) override;
52 void SetMemoryPolicyChangedCallback( 52 void SetMemoryPolicyChangedCallback(
53 const MemoryPolicyChangedCallback& memory_policy_changed_callback) 53 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
54 override; 54 override;
55 bool HasBeenDestroyed() override;
55 56
56 void OnLostContext(); 57 void OnLostContext();
57 58
58 base::ThreadChecker main_thread_checker_; 59 base::ThreadChecker main_thread_checker_;
59 60
60 scoped_ptr<gpu::GLInProcessContext> context_; 61 scoped_ptr<gpu::GLInProcessContext> context_;
61 skia::RefPtr<class GrContext> gr_context_; 62 skia::RefPtr<class GrContext> gr_context_;
62 63
63 cc::ContextProvider::Capabilities capabilities_; 64 cc::ContextProvider::Capabilities capabilities_;
64 65
65 LostContextCallback lost_context_callback_; 66 LostContextCallback lost_context_callback_;
66 67
67 bool destroyed_; 68 bool destroyed_;
68 69
69 base::Lock context_lock_; 70 base::Lock context_lock_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider); 72 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider);
72 }; 73 };
73 74
74 } // namespace android_webview 75 } // namespace android_webview
75 76
76 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 77 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_render_thread_context_provider.cc » ('j') | cc/output/context_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698