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

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

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
« no previous file with comments | « ui/ozone/public/ozone_switches.cc ('k') | ui/ozone/public/surface_factory_ozone.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 #ifndef UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 5 #ifndef UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/native_library.h" 10 #include "base/native_library.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual intptr_t GetNativeDisplay(); 83 virtual intptr_t GetNativeDisplay();
84 84
85 // Create SurfaceOzoneEGL for the specified gfx::AcceleratedWidget. 85 // Create SurfaceOzoneEGL for the specified gfx::AcceleratedWidget.
86 // 86 //
87 // Note: When used from content, this is called in the GPU process. The 87 // Note: When used from content, this is called in the GPU process. The
88 // platform must support creation of SurfaceOzoneEGL from the GPU process 88 // platform must support creation of SurfaceOzoneEGL from the GPU process
89 // using only the handle contained in gfx::AcceleratedWidget. 89 // using only the handle contained in gfx::AcceleratedWidget.
90 virtual scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 90 virtual scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
91 gfx::AcceleratedWidget widget); 91 gfx::AcceleratedWidget widget);
92 92
93 // Create an EGL surface that isn't backed by any buffers, and is used
94 // for overlay-only displays. This will return NULL if this mode is
95 // not supported.
96 virtual scoped_ptr<SurfaceOzoneEGL> CreateEmptyEGLSurfaceForWidget(
dnicoara 2014/08/07 14:48:21 nit: I don't like naming it Empty. Surfaceless is
97 gfx::AcceleratedWidget widget);
98
93 // Create SurfaceOzoneCanvas for the specified gfx::AcceleratedWidget. 99 // Create SurfaceOzoneCanvas for the specified gfx::AcceleratedWidget.
94 // 100 //
95 // Note: The platform must support creation of SurfaceOzoneCanvas from the 101 // Note: The platform must support creation of SurfaceOzoneCanvas from the
96 // Browser Process using only the handle contained in gfx::AcceleratedWidget. 102 // Browser Process using only the handle contained in gfx::AcceleratedWidget.
97 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 103 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
98 gfx::AcceleratedWidget widget); 104 gfx::AcceleratedWidget widget);
99 105
100 // Sets up GL bindings for the native surface. Takes two callback parameters 106 // Sets up GL bindings for the native surface. Takes two callback parameters
101 // that allow Ozone to register the GL bindings. 107 // that allow Ozone to register the GL bindings.
102 virtual bool LoadEGLGLES2Bindings( 108 virtual bool LoadEGLGLES2Bindings(
(...skipping 21 matching lines...) Expand all
124 // overlay-only mode. 130 // overlay-only mode.
125 virtual bool CanShowPrimaryPlaneAsOverlay(); 131 virtual bool CanShowPrimaryPlaneAsOverlay();
126 132
127 private: 133 private:
128 static SurfaceFactoryOzone* impl_; // not owned 134 static SurfaceFactoryOzone* impl_; // not owned
129 }; 135 };
130 136
131 } // namespace ui 137 } // namespace ui
132 138
133 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 139 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/ozone_switches.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698