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

Side by Side Diff: android_webview/browser/deferred_gpu_command_service.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEFERRED_GPU_COMMAND_SERVICE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_
6 #define ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 namespace android_webview { 25 namespace android_webview {
26 26
27 class ScopedAllowGL { 27 class ScopedAllowGL {
28 public: 28 public:
29 ScopedAllowGL(); 29 ScopedAllowGL();
30 ~ScopedAllowGL(); 30 ~ScopedAllowGL();
31 31
32 static bool IsAllowed(); 32 static bool IsAllowed();
33 33
34 private: 34 private:
35 static base::LazyInstance<base::ThreadLocalBoolean> allow_gl; 35 static base::LazyInstance<base::ThreadLocalBoolean>::DestructorAtExit
36 allow_gl;
36 37
37 DISALLOW_COPY_AND_ASSIGN(ScopedAllowGL); 38 DISALLOW_COPY_AND_ASSIGN(ScopedAllowGL);
38 }; 39 };
39 40
40 class DeferredGpuCommandService 41 class DeferredGpuCommandService
41 : public gpu::InProcessCommandBuffer::Service, 42 : public gpu::InProcessCommandBuffer::Service,
42 public base::RefCountedThreadSafe<DeferredGpuCommandService> { 43 public base::RefCountedThreadSafe<DeferredGpuCommandService> {
43 public: 44 public:
44 static void SetInstance(); 45 static void SetInstance();
45 static DeferredGpuCommandService* GetInstance(); 46 static DeferredGpuCommandService* GetInstance();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 std::unique_ptr<gpu::SyncPointManager> sync_point_manager_; 84 std::unique_ptr<gpu::SyncPointManager> sync_point_manager_;
84 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 85 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
85 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 86 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
86 framebuffer_completeness_cache_; 87 framebuffer_completeness_cache_;
87 DISALLOW_COPY_AND_ASSIGN(DeferredGpuCommandService); 88 DISALLOW_COPY_AND_ASSIGN(DeferredGpuCommandService);
88 }; 89 };
89 90
90 } // namespace android_webview 91 } // namespace android_webview
91 92
92 #endif // ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_ 93 #endif // ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_cookie_access_policy.h ('k') | android_webview/browser/deferred_gpu_command_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698