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

Side by Side Diff: content/child/child_client_native_pixmap_factory_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: rename to ClientNativePixmapFactory 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
(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_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
6 #define CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/ozone/public/client_native_pixmap_factory.h"
11
12 namespace content {
13
14 class ChildClientNativePixmapFactory : public ui::ClientNativePixmapFactory {
reveman 2015/08/13 18:05:28 Same here. This is just a large wrapper around cal
dshwang 2015/08/14 12:40:03 Done.
15 public:
16 static ChildClientNativePixmapFactory* GetInstance();
17 ~ChildClientNativePixmapFactory() override;
18
19 // ui::ClientNativePixmapFactory:
20 void Initialize(const base::FileDescriptor& virtual_device) override;
21 std::vector<Configuration> GetSupportedConfigurations() const override;
22 scoped_ptr<ui::ClientNativePixmap> ImportNativePixmap(
23 const base::FileDescriptor& handle,
24 const gfx::Size& size,
25 gfx::BufferFormat format,
26 gfx::BufferUsage usage) override;
27
28 private:
29 friend struct ChildClientNativePixmapFactoryTrait;
30 ChildClientNativePixmapFactory();
31
32 scoped_ptr<ui::ClientNativePixmapFactory> pixmap_factory_;
33
34 DISALLOW_COPY_AND_ASSIGN(ChildClientNativePixmapFactory);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698