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

Side by Side Diff: ui/ozone/platform/cast/surface_ozone_egl_cast.cc

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
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 #include "ui/ozone/platform/cast/surface_ozone_egl_cast.h" 5 #include "ui/ozone/platform/cast/surface_ozone_egl_cast.h"
6 6
7 #include "third_party/khronos/EGL/egl.h" 7 #include "third_party/khronos/EGL/egl.h"
8 #include "ui/gfx/vsync_provider.h" 8 #include "ui/gfx/vsync_provider.h"
9 #include "ui/ozone/common/egl_util.h" 9 #include "ui/ozone/common/egl_util.h"
10 #include "ui/ozone/platform/cast/surface_factory_cast.h" 10 #include "ui/ozone/platform/cast/surface_factory_cast.h"
(...skipping 16 matching lines...) Expand all
27 void SurfaceOzoneEglCast::OnSwapBuffersAsync( 27 void SurfaceOzoneEglCast::OnSwapBuffersAsync(
28 const SwapCompletionCallback& callback) { 28 const SwapCompletionCallback& callback) {
29 parent_->OnSwapBuffers(); 29 parent_->OnSwapBuffers();
30 callback.Run(gfx::SwapResult::SWAP_ACK); 30 callback.Run(gfx::SwapResult::SWAP_ACK);
31 } 31 }
32 32
33 bool SurfaceOzoneEglCast::ResizeNativeWindow(const gfx::Size& viewport_size) { 33 bool SurfaceOzoneEglCast::ResizeNativeWindow(const gfx::Size& viewport_size) {
34 return parent_->ResizeDisplay(viewport_size); 34 return parent_->ResizeDisplay(viewport_size);
35 } 35 }
36 36
37 scoped_ptr<gfx::VSyncProvider> SurfaceOzoneEglCast::CreateVSyncProvider() { 37 std::unique_ptr<gfx::VSyncProvider> SurfaceOzoneEglCast::CreateVSyncProvider() {
38 return nullptr; 38 return nullptr;
39 } 39 }
40 40
41 void* /* EGLConfig */ SurfaceOzoneEglCast::GetEGLSurfaceConfig( 41 void* /* EGLConfig */ SurfaceOzoneEglCast::GetEGLSurfaceConfig(
42 const EglConfigCallbacks& egl) { 42 const EglConfigCallbacks& egl) {
43 EGLint config_attribs[] = {EGL_BUFFER_SIZE, 43 EGLint config_attribs[] = {EGL_BUFFER_SIZE,
44 32, 44 32,
45 EGL_ALPHA_SIZE, 45 EGL_ALPHA_SIZE,
46 8, 46 8,
47 EGL_BLUE_SIZE, 47 EGL_BLUE_SIZE,
48 8, 48 8,
49 EGL_GREEN_SIZE, 49 EGL_GREEN_SIZE,
50 8, 50 8,
51 EGL_RED_SIZE, 51 EGL_RED_SIZE,
52 8, 52 8,
53 EGL_RENDERABLE_TYPE, 53 EGL_RENDERABLE_TYPE,
54 EGL_OPENGL_ES2_BIT, 54 EGL_OPENGL_ES2_BIT,
55 EGL_SURFACE_TYPE, 55 EGL_SURFACE_TYPE,
56 EGL_WINDOW_BIT, 56 EGL_WINDOW_BIT,
57 EGL_NONE}; 57 EGL_NONE};
58 return ChooseEGLConfig(egl, config_attribs); 58 return ChooseEGLConfig(egl, config_attribs);
59 } 59 }
60 60
61 } // namespace ui 61 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/cast/surface_ozone_egl_cast.h ('k') | ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698