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

Side by Side Diff: android_webview/browser/scoped_app_gl_state_restore.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include <memory>
5 #include <vector> 6 #include <vector>
6 7
7 #include "base/macros.h" 8 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class GLContext; 11 class GLContext;
12 } 12 }
13 13
14 namespace android_webview { 14 namespace android_webview {
15 15
16 namespace internal { 16 namespace internal {
17 class ScopedAppGLStateRestoreImpl; 17 class ScopedAppGLStateRestoreImpl;
18 } 18 }
(...skipping 25 matching lines...) Expand all
44 MODE_RESOURCE_MANAGEMENT, 44 MODE_RESOURCE_MANAGEMENT,
45 }; 45 };
46 46
47 explicit ScopedAppGLStateRestore(CallMode mode); 47 explicit ScopedAppGLStateRestore(CallMode mode);
48 ~ScopedAppGLStateRestore(); 48 ~ScopedAppGLStateRestore();
49 49
50 StencilState stencil_state() const; 50 StencilState stencil_state() const;
51 int framebuffer_binding_ext() const; 51 int framebuffer_binding_ext() const;
52 52
53 private: 53 private:
54 scoped_ptr<internal::ScopedAppGLStateRestoreImpl> impl_; 54 std::unique_ptr<internal::ScopedAppGLStateRestoreImpl> impl_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore); 56 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore);
57 }; 57 };
58 58
59 } // namespace android_webview 59 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698