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

Side by Side Diff: content/test/test_client_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 latest crrev.com/1128113011 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_MANAGER_OZONE_H_
6 #define CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_
7
8 #include "ui/ozone/public/client_native_pixmap_manager.h"
9
10 namespace content {
11
12 class TestClientNativePixmapManager : public ui::ClientNativePixmapManager {
13 public:
14 static TestClientNativePixmapManager* GetInstance();
15 ~TestClientNativePixmapManager() override;
16
17 // ui::ClientNativePixmapManager:
18 std::vector<Configuration> GetSupportedConfigurations() const override;
19 scoped_ptr<ui::ClientNativePixmap> ImportClientNativePixmap(
20 base::FileDescriptor handle,
21 gfx::Size size,
22 ui::NativePixmapFormat format,
23 ui::NativePixmapUsage usage) override;
24
25 private:
26 friend struct TestClientNativePixmapManagerTrait;
27 TestClientNativePixmapManager();
28
29 void Initialize(const base::FileDescriptor& virtual_device) override;
30
31 scoped_ptr<ui::ClientNativePixmapManager> pixmap_manager_;
32
33 DISALLOW_COPY_AND_ASSIGN(TestClientNativePixmapManager);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698