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

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

Issue 1139903005: Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: persistentmap: rebase Created 5 years, 6 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/drm/gpu/gbm_surface_factory.cc ('k') | no next file » | 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // formats once we know what sorts of content, video, etc. we can support. 62 // formats once we know what sorts of content, video, etc. we can support.
63 enum BufferFormat { 63 enum BufferFormat {
64 UNKNOWN, 64 UNKNOWN,
65 BGRA_8888, 65 BGRA_8888,
66 RGBX_8888, 66 RGBX_8888,
67 RGB_888, 67 RGB_888,
68 }; 68 };
69 69
70 enum BufferUsage { 70 enum BufferUsage {
71 MAP, 71 MAP,
72 PERSISTENT_MAP,
72 SCANOUT, 73 SCANOUT,
73 }; 74 };
74 75
75 typedef void* (*GLGetProcAddressProc)(const char* name); 76 typedef void* (*GLGetProcAddressProc)(const char* name);
76 typedef base::Callback<void(base::NativeLibrary)> AddGLLibraryCallback; 77 typedef base::Callback<void(base::NativeLibrary)> AddGLLibraryCallback;
77 typedef base::Callback<void(GLGetProcAddressProc)> 78 typedef base::Callback<void(GLGetProcAddressProc)>
78 SetGLGetProcAddressProcCallback; 79 SetGLGetProcAddressProcCallback;
79 80
80 SurfaceFactoryOzone(); 81 SurfaceFactoryOzone();
81 virtual ~SurfaceFactoryOzone(); 82 virtual ~SurfaceFactoryOzone();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // such as MAP for zero copy or SCANOUT for display controller. 159 // such as MAP for zero copy or SCANOUT for display controller.
159 virtual bool CanCreateNativePixmap(BufferUsage usage); 160 virtual bool CanCreateNativePixmap(BufferUsage usage);
160 161
161 private: 162 private:
162 static SurfaceFactoryOzone* impl_; // not owned 163 static SurfaceFactoryOzone* impl_; // not owned
163 }; 164 };
164 165
165 } // namespace ui 166 } // namespace ui
166 167
167 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 168 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698