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

Side by Side Diff: android_webview/browser/aw_render_thread_context_provider.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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
13 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
14 #include "cc/output/context_provider.h" 15 #include "cc/output/context_provider.h"
15 #include "gpu/command_buffer/service/in_process_command_buffer.h" 16 #include "gpu/command_buffer/service/in_process_command_buffer.h"
16 #include "skia/ext/refptr.h" 17 #include "skia/ext/refptr.h"
17 18
18 namespace gfx { 19 namespace gfx {
19 class GLSurface; 20 class GLSurface;
20 } 21 }
21 22
(...skipping 25 matching lines...) Expand all
47 void SetupLock() override; 48 void SetupLock() override;
48 base::Lock* GetLock() override; 49 base::Lock* GetLock() override;
49 void DeleteCachedResources() override; 50 void DeleteCachedResources() override;
50 void SetLostContextCallback( 51 void SetLostContextCallback(
51 const LostContextCallback& lost_context_callback) override; 52 const LostContextCallback& lost_context_callback) override;
52 53
53 void OnLostContext(); 54 void OnLostContext();
54 55
55 base::ThreadChecker main_thread_checker_; 56 base::ThreadChecker main_thread_checker_;
56 57
57 scoped_ptr<gpu::GLInProcessContext> context_; 58 std::unique_ptr<gpu::GLInProcessContext> context_;
58 skia::RefPtr<class GrContext> gr_context_; 59 skia::RefPtr<class GrContext> gr_context_;
59 60
60 cc::ContextProvider::Capabilities capabilities_; 61 cc::ContextProvider::Capabilities capabilities_;
61 62
62 LostContextCallback lost_context_callback_; 63 LostContextCallback lost_context_callback_;
63 64
64 base::Lock context_lock_; 65 base::Lock context_lock_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider); 67 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider);
67 }; 68 };
68 69
69 } // namespace android_webview 70 } // namespace android_webview
70 71
71 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 72 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_pref_store.cc ('k') | android_webview/browser/browser_view_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698