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

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

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CLIENT_NATIVE_PIXMAP_FACTORY_H_ 5 #ifndef UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_
6 #define UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ 6 #define UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 24 matching lines...) Expand all
35 struct Configuration { 35 struct Configuration {
36 gfx::BufferFormat format; 36 gfx::BufferFormat format;
37 gfx::BufferUsage usage; 37 gfx::BufferUsage usage;
38 }; 38 };
39 39
40 // Gets supported format/usage configurations. 40 // Gets supported format/usage configurations.
41 virtual std::vector<Configuration> GetSupportedConfigurations() const = 0; 41 virtual std::vector<Configuration> GetSupportedConfigurations() const = 0;
42 42
43 // TODO(dshwang): implement it. crbug.com/475633 43 // TODO(dshwang): implement it. crbug.com/475633
44 // Import the native pixmap from |handle| to be used in non-GPU processes. 44 // Import the native pixmap from |handle| to be used in non-GPU processes.
45 virtual scoped_ptr<ClientNativePixmap> ImportNativePixmap( 45 virtual scoped_ptr<ClientNativePixmap> ImportFromHandle(
46 const base::FileDescriptor& handle, 46 const gfx::NativePixmapHandle& handle,
47 const gfx::Size& size, 47 const gfx::Size& size,
48 gfx::BufferFormat format, 48 gfx::BufferFormat format,
49 gfx::BufferUsage usage) = 0; 49 gfx::BufferUsage usage) = 0;
50 50
51 protected: 51 protected:
52 ClientNativePixmapFactory(); 52 ClientNativePixmapFactory();
53 53
54 private: 54 private:
55 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactory); 55 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactory);
56 }; 56 };
57 57
58 } // namespace ui 58 } // namespace ui
59 59
60 #endif // UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ 60 #endif // UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698