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

Side by Side Diff: ui/ozone/public/surface_factory_ozone.cc

Issue 855023003: Add presubmit check for scoped_ptr usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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/platform/test/test_window_manager.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "ui/ozone/public/surface_factory_ozone.h" 5 #include "ui/ozone/public/surface_factory_ozone.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "ui/ozone/public/native_pixmap.h" 10 #include "ui/ozone/public/native_pixmap.h"
(...skipping 24 matching lines...) Expand all
35 return 0; 35 return 0;
36 } 36 }
37 37
38 int SurfaceFactoryOzone::GetDrmFd() { 38 int SurfaceFactoryOzone::GetDrmFd() {
39 return -1; 39 return -1;
40 } 40 }
41 41
42 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( 42 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
43 gfx::AcceleratedWidget widget) { 43 gfx::AcceleratedWidget widget) {
44 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
45 return scoped_ptr<SurfaceOzoneEGL>(); 45 return nullptr;
46 } 46 }
47 47
48 scoped_ptr<SurfaceOzoneEGL> 48 scoped_ptr<SurfaceOzoneEGL>
49 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( 49 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget(
50 gfx::AcceleratedWidget widget) { 50 gfx::AcceleratedWidget widget) {
51 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
52 return scoped_ptr<SurfaceOzoneEGL>(); 52 return nullptr;
53 } 53 }
54 54
55 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( 55 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
56 gfx::AcceleratedWidget widget) { 56 gfx::AcceleratedWidget widget) {
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 return scoped_ptr<SurfaceOzoneCanvas>(); 58 return nullptr;
59 } 59 }
60 60
61 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( 61 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
62 const int32* desired_attributes) { 62 const int32* desired_attributes) {
63 return desired_attributes; 63 return desired_attributes;
64 } 64 }
65 65
66 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( 66 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
67 gfx::AcceleratedWidget w) { 67 gfx::AcceleratedWidget w) {
68 return NULL; 68 return NULL;
(...skipping 19 matching lines...) Expand all
88 88
89 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { 89 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
90 return false; 90 return false;
91 } 91 }
92 92
93 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { 93 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) {
94 return false; 94 return false;
95 } 95 }
96 96
97 } // namespace ui 97 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/test/test_window_manager.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698