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

Side by Side Diff: ui/ozone/public/surface_ozone_egl.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_ozone_canvas.h ('k') | ui/ozone/public/system_input_injector.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_EGL_H_ 5 #ifndef UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ 6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
7 7
8 #include <memory>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/overlay_transform.h" 11 #include "ui/gfx/overlay_transform.h"
11 #include "ui/gfx/swap_result.h" 12 #include "ui/gfx/swap_result.h"
12 #include "ui/ozone/ozone_base_export.h" 13 #include "ui/ozone/ozone_base_export.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 class Size; 16 class Size;
16 class VSyncProvider; 17 class VSyncProvider;
17 } 18 }
18 19
19 namespace ui { 20 namespace ui {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // be used to present the new front buffer if the platform requires this. 62 // be used to present the new front buffer if the platform requires this.
62 // The callback should be run on the calling thread 63 // The callback should be run on the calling thread
63 // (i.e. same thread SwapBuffersAsync is called). 64 // (i.e. same thread SwapBuffersAsync is called).
64 virtual void OnSwapBuffersAsync(const SwapCompletionCallback& callback) = 0; 65 virtual void OnSwapBuffersAsync(const SwapCompletionCallback& callback) = 0;
65 66
66 // Returns a gfx::VsyncProvider for this surface. Note that this may be 67 // Returns a gfx::VsyncProvider for this surface. Note that this may be
67 // called after we have entered the sandbox so if there are operations (e.g. 68 // called after we have entered the sandbox so if there are operations (e.g.
68 // opening a file descriptor providing vsync events) that must be done 69 // opening a file descriptor providing vsync events) that must be done
69 // outside of the sandbox, they must have been completed in 70 // outside of the sandbox, they must have been completed in
70 // InitializeHardware. Returns an empty scoped_ptr on error. 71 // InitializeHardware. Returns an empty scoped_ptr on error.
71 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; 72 virtual std::unique_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
72 73
73 // Returns true if the surface is created on a UDL device. 74 // Returns true if the surface is created on a UDL device.
74 virtual bool IsUniversalDisplayLinkDevice(); 75 virtual bool IsUniversalDisplayLinkDevice();
75 76
76 // Returns the EGL configuration to use for this surface. The default EGL 77 // Returns the EGL configuration to use for this surface. The default EGL
77 // configuration will be used if this returns nullptr. 78 // configuration will be used if this returns nullptr.
78 virtual void* /* EGLConfig */ GetEGLSurfaceConfig( 79 virtual void* /* EGLConfig */ GetEGLSurfaceConfig(
79 const EglConfigCallbacks& egl) = 0; 80 const EglConfigCallbacks& egl) = 0;
80 }; 81 };
81 82
82 } // namespace ui 83 } // namespace ui
83 84
84 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ 85 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/surface_ozone_canvas.h ('k') | ui/ozone/public/system_input_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698