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

Unified Diff: ui/ozone/public/client_native_pixmap_factory.h

Issue 1389133002: content: Use type-parameterized tests for GpuMemoryBuffer implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add blankline Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/client_native_pixmap_factory.h
diff --git a/ui/ozone/public/client_native_pixmap_factory.h b/ui/ozone/public/client_native_pixmap_factory.h
index 943547c3956039968d83008a0ec71b044f7d03b1..f0593b5cba7440a522c2f972f84cd80524249414 100644
--- a/ui/ozone/public/client_native_pixmap_factory.h
+++ b/ui/ozone/public/client_native_pixmap_factory.h
@@ -34,13 +34,9 @@ class OZONE_EXPORT ClientNativePixmapFactory {
// Initialize with the given client native pixmap |device_fd|.
virtual void Initialize(base::ScopedFD device_fd) = 0;
- struct Configuration {
- gfx::BufferFormat format;
- gfx::BufferUsage usage;
- };
-
- // Gets supported format/usage configurations.
- virtual std::vector<Configuration> GetSupportedConfigurations() const = 0;
+ // Returns true if format/usage configuration is supported.
+ virtual bool IsConfigurationSupported(gfx::BufferFormat format,
+ gfx::BufferUsage usage) const = 0;
// TODO(dshwang): implement it. crbug.com/475633
// Import the native pixmap from |handle| to be used in non-GPU processes.
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698