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

Side by Side Diff: content/test/test_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_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
6 #define CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
7
8 #include "ui/ozone/public/client_native_pixmap_factory.h"
9
10 namespace content {
11
12 class TestClientNativePixmapFactory : public ui::ClientNativePixmapFactory {
13 public:
14 static TestClientNativePixmapFactory* GetInstance();
15 ~TestClientNativePixmapFactory() override;
16
17 // ui::ClientNativePixmapFactory:
18 std::vector<Configuration> GetSupportedConfigurations() const override;
19 scoped_ptr<ui::ClientNativePixmap> ImportNativePixmap(
20 const base::FileDescriptor& handle,
21 const gfx::Size& size,
22 gfx::BufferFormat format,
23 gfx::BufferUsage usage) override;
24
25 private:
26 friend struct TestClientNativePixmapFactoryTrait;
27 TestClientNativePixmapFactory();
28
29 void Initialize(const base::FileDescriptor& virtual_device) override;
30
31 scoped_ptr<ui::ClientNativePixmapFactory> pixmap_factory_;
32
33 DISALLOW_COPY_AND_ASSIGN(TestClientNativePixmapFactory);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698