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

Side by Side Diff: content/browser/gpu/browser_native_pixmap_manager_ozone.h

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to lastest 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_
7
8 #include "base/file_descriptor_posix.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/ozone/public/native_pixmap_manager.h"
12
13 namespace content {
14 class BrowserMessageFilter;
15
16 class BrowserNativePixmapManager : public ui::NativePixmapManager {
17 public:
18 static BrowserNativePixmapManager* GetInstance();
19 ~BrowserNativePixmapManager() override;
20
21 // Create message filter to handle messages from child process.
22 BrowserMessageFilter* CreateMessageFilter();
23
24 typedef base::Callback<void(const base::FileDescriptor& fd)>
25 FileDescriptorCallback;
26 void GetVirtualDeviceForChildProcess(const FileDescriptorCallback& callback);
27
28 // ui::NativePixmapManager:
29 void Initialize(const base::FileDescriptor& device_fd) override;
30 std::vector<Configuration> GetSupportedNativePixmapConfigurations()
31 const override;
32
33 private:
34 friend struct BrowserNativePixmapManagerTrait;
35 BrowserNativePixmapManager();
36
37 scoped_ptr<ui::NativePixmapManager> pixmap_manager_;
38 base::FileDescriptor device_fd_;
39
40 DISALLOW_COPY_AND_ASSIGN(BrowserNativePixmapManager);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_GPU_BROWSER_NATIVE_PIXMAP_MANAGER_OZONE_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/gpu/browser_native_pixmap_manager_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698