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

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

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix extensions_unittests Created 5 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 #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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 gfx::AcceleratedWidget widget, 104 gfx::AcceleratedWidget widget,
105 gfx::Size size, 105 gfx::Size size,
106 gfx::BufferFormat format, 106 gfx::BufferFormat format,
107 gfx::BufferUsage usage); 107 gfx::BufferUsage usage);
108 108
109 // Returns true if overlays can be shown at z-index 0, replacing the main 109 // Returns true if overlays can be shown at z-index 0, replacing the main
110 // surface. Combined with surfaceless extensions, it allows for an 110 // surface. Combined with surfaceless extensions, it allows for an
111 // overlay-only mode. 111 // overlay-only mode.
112 virtual bool CanShowPrimaryPlaneAsOverlay(); 112 virtual bool CanShowPrimaryPlaneAsOverlay();
113 113
114 // Returns true if the platform is able to create buffers for a specific usage
115 // such as MAP for zero copy or SCANOUT for display controller.
116 virtual bool CanCreateNativePixmap(gfx::BufferUsage usage);
117
118 protected: 114 protected:
119 SurfaceFactoryOzone(); 115 SurfaceFactoryOzone();
120 virtual ~SurfaceFactoryOzone(); 116 virtual ~SurfaceFactoryOzone();
121 117
122 private: 118 private:
123 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); 119 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone);
124 }; 120 };
125 121
126 } // namespace ui 122 } // namespace ui
127 123
128 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 124 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/client_native_pixmap_factory.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698