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

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

Issue 433543002: Add a new ozone switch to enable surfaceless output mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch to ozone flag Created 6 years, 4 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 (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 23 matching lines...) Expand all
34 intptr_t SurfaceFactoryOzone::GetNativeDisplay() { 34 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
35 return 0; 35 return 0;
36 } 36 }
37 37
38 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( 38 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
39 gfx::AcceleratedWidget widget) { 39 gfx::AcceleratedWidget widget) {
40 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
41 return scoped_ptr<SurfaceOzoneEGL>(); 41 return scoped_ptr<SurfaceOzoneEGL>();
42 } 42 }
43 43
44 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEmptyEGLSurfaceForWidget(
45 gfx::AcceleratedWidget widget) {
46 NOTIMPLEMENTED();
47 return scoped_ptr<SurfaceOzoneCanvas>();
48 }
49
44 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( 50 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
45 gfx::AcceleratedWidget widget) { 51 gfx::AcceleratedWidget widget) {
46 NOTIMPLEMENTED(); 52 NOTIMPLEMENTED();
47 return scoped_ptr<SurfaceOzoneCanvas>(); 53 return scoped_ptr<SurfaceOzoneCanvas>();
48 } 54 }
49 55
50 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( 56 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
51 const int32* desired_attributes) { 57 const int32* desired_attributes) {
52 return desired_attributes; 58 return desired_attributes;
53 } 59 }
54 60
55 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( 61 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
56 gfx::AcceleratedWidget w) { 62 gfx::AcceleratedWidget w) {
57 return NULL; 63 return NULL;
58 } 64 }
59 65
60 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( 66 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
61 gfx::Size size, 67 gfx::Size size,
62 BufferFormat format) { 68 BufferFormat format) {
63 return NULL; 69 return NULL;
64 } 70 }
65 71
66 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { 72 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
67 return false; 73 return false;
68 } 74 }
69 } // namespace ui 75 } // namespace ui
OLDNEW
« ui/ozone/public/surface_factory_ozone.h ('K') | « ui/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698