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

Side by Side Diff: ui/ozone/public/surface_ozone_canvas.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/ozone/public/surface_factory_ozone.cc ('k') | ui/ozone/public/surface_ozone_egl.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 UI_OZONE_PUBLIC_SURFACE_OZONE_CANVAS_H_ 5 #ifndef UI_OZONE_PUBLIC_SURFACE_OZONE_CANVAS_H_
6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_CANVAS_H_ 6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_CANVAS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "skia/ext/refptr.h" 10 #include "skia/ext/refptr.h"
10 #include "ui/ozone/ozone_base_export.h" 11 #include "ui/ozone/ozone_base_export.h"
11 12
12 class SkSurface; 13 class SkSurface;
13 14
14 namespace gfx { 15 namespace gfx {
15 class Size; 16 class Size;
16 class VSyncProvider; 17 class VSyncProvider;
17 } 18 }
18 19
(...skipping 21 matching lines...) Expand all
40 // 41 //
41 // The implementation may assume that any pixels outside the damage 42 // The implementation may assume that any pixels outside the damage
42 // rectangle are unchanged since the previous call to PresentCanvas(). 43 // rectangle are unchanged since the previous call to PresentCanvas().
43 virtual void PresentCanvas(const gfx::Rect& damage) = 0; 44 virtual void PresentCanvas(const gfx::Rect& damage) = 0;
44 45
45 // Returns a gfx::VsyncProvider for this surface. Note that this may be 46 // Returns a gfx::VsyncProvider for this surface. Note that this may be
46 // called after we have entered the sandbox so if there are operations (e.g. 47 // called after we have entered the sandbox so if there are operations (e.g.
47 // opening a file descriptor providing vsync events) that must be done 48 // opening a file descriptor providing vsync events) that must be done
48 // outside of the sandbox, they must have been completed in 49 // outside of the sandbox, they must have been completed in
49 // InitializeHardware. Returns an empty scoped_ptr on error. 50 // InitializeHardware. Returns an empty scoped_ptr on error.
50 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; 51 virtual std::unique_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
51 }; 52 };
52 53
53 } // namespace ui 54 } // namespace ui
54 55
55 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_CANVAS_H_ 56 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_CANVAS_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.cc ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698