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

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

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 8 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
« no previous file with comments | « android_webview/browser/child_frame.cc ('k') | android_webview/browser/hardware_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <queue> 11 #include <queue>
11 #include <utility> 12 #include <utility>
12 13
13 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
14 #include "base/macros.h" 15 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h"
17 #include "base/threading/thread_local.h" 17 #include "base/threading/thread_local.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "gpu/command_buffer/service/in_process_command_buffer.h" 19 #include "gpu/command_buffer/service/in_process_command_buffer.h"
20 20
21 namespace gpu { 21 namespace gpu {
22 class SyncPointManager; 22 class SyncPointManager;
23 } 23 }
24 24
25 namespace android_webview { 25 namespace android_webview {
26 26
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 friend class ScopedAllowGL; 72 friend class ScopedAllowGL;
73 static void RequestProcessGL(bool for_idle); 73 static void RequestProcessGL(bool for_idle);
74 74
75 DeferredGpuCommandService(); 75 DeferredGpuCommandService();
76 size_t IdleQueueSize(); 76 size_t IdleQueueSize();
77 77
78 base::Lock tasks_lock_; 78 base::Lock tasks_lock_;
79 std::queue<base::Closure> tasks_; 79 std::queue<base::Closure> tasks_;
80 std::queue<std::pair<base::Time, base::Closure> > idle_tasks_; 80 std::queue<std::pair<base::Time, base::Closure> > idle_tasks_;
81 81
82 scoped_ptr<gpu::SyncPointManager> sync_point_manager_; 82 std::unique_ptr<gpu::SyncPointManager> sync_point_manager_;
83 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 83 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
84 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 84 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
85 framebuffer_completeness_cache_; 85 framebuffer_completeness_cache_;
86 DISALLOW_COPY_AND_ASSIGN(DeferredGpuCommandService); 86 DISALLOW_COPY_AND_ASSIGN(DeferredGpuCommandService);
87 }; 87 };
88 88
89 } // namespace android_webview 89 } // namespace android_webview
90 90
91 #endif // ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_ 91 #endif // ANDROID_WEBVIEW_BROWSER_DEFERRED_GPU_COMMAND_SERVICE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/child_frame.cc ('k') | android_webview/browser/hardware_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698