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

Side by Side Diff: content/browser/gpu/browser_native_pixmap_manager_ozone.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 new crrev.com/1128113011 Created 5 years, 5 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 CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_
7 7
8 #include "base/file_descriptor_posix.h" 8 #include "base/file_descriptor_posix.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 13 matching lines...) Expand all
24 24
25 typedef base::Callback<void(const base::FileDescriptor& fd)> 25 typedef base::Callback<void(const base::FileDescriptor& fd)>
26 FileDescriptorCallback; 26 FileDescriptorCallback;
27 void ReplyVirtualDeviceForChildProcess( 27 void ReplyVirtualDeviceForChildProcess(
28 const FileDescriptorCallback& callback); 28 const FileDescriptorCallback& callback);
29 29
30 // ui::NativePixmapManager: 30 // ui::NativePixmapManager:
31 void Initialize(const base::FileDescriptor& device_fd) override; 31 void Initialize(const base::FileDescriptor& device_fd) override;
32 std::vector<Configuration> GetSupportedNativePixmapConfigurations() 32 std::vector<Configuration> GetSupportedNativePixmapConfigurations()
33 const override; 33 const override;
34 scoped_refptr<ui::NativePixmap> CreateFromFileDescriptor(
35 base::FileDescriptor handle,
36 gfx::Size size,
37 ui::SurfaceFactoryOzone::BufferFormat format,
38 ui::SurfaceFactoryOzone::BufferUsage usage) override;
34 39
35 private: 40 private:
36 friend struct BrowserNativePixmapManagerTrait; 41 friend struct BrowserNativePixmapManagerTrait;
37 BrowserNativePixmapManager(); 42 BrowserNativePixmapManager();
38 43
39 scoped_ptr<ui::NativePixmapManager> pixmap_manager_; 44 scoped_ptr<ui::NativePixmapManager> pixmap_manager_;
40 base::FileDescriptor device_fd_; 45 base::FileDescriptor device_fd_;
41 46
42 DISALLOW_COPY_AND_ASSIGN(BrowserNativePixmapManager); 47 DISALLOW_COPY_AND_ASSIGN(BrowserNativePixmapManager);
43 }; 48 };
44 49
45 } // namespace content 50 } // namespace content
46 51
47 #endif // CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_ 52 #endif // CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698