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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT 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
« no previous file with comments | « ui/ozone/public/client_native_pixmap.h ('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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Gets supported format/usage configurations. 44 // Gets supported format/usage configurations.
45 virtual std::vector<Configuration> GetSupportedConfigurations() const = 0; 45 virtual std::vector<Configuration> GetSupportedConfigurations() const = 0;
46 46
47 // TODO(dshwang): implement it. crbug.com/475633 47 // TODO(dshwang): implement it. crbug.com/475633
48 // Import the native pixmap from |handle| to be used in non-GPU processes. 48 // Import the native pixmap from |handle| to be used in non-GPU processes.
49 // This function takes ownership of any file descriptors in |handle|. 49 // This function takes ownership of any file descriptors in |handle|.
50 virtual scoped_ptr<ClientNativePixmap> ImportFromHandle( 50 virtual scoped_ptr<ClientNativePixmap> ImportFromHandle(
51 const gfx::NativePixmapHandle& handle, 51 const gfx::NativePixmapHandle& handle,
52 const gfx::Size& size, 52 const gfx::Size& size,
53 gfx::BufferFormat format,
54 gfx::BufferUsage usage) = 0; 53 gfx::BufferUsage usage) = 0;
55 54
56 protected: 55 protected:
57 ClientNativePixmapFactory(); 56 ClientNativePixmapFactory();
58 57
59 private: 58 private:
60 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactory); 59 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactory);
61 }; 60 };
62 61
63 } // namespace ui 62 } // namespace ui
64 63
65 #endif // UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ 64 #endif // UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/client_native_pixmap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698