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

Unified Diff: content/test/test_native_pixmap_manager_ozone.h

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: separate VGEM part to another CL 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 side-by-side diff with in-line comments
Download patch
Index: content/test/test_native_pixmap_manager_ozone.h
diff --git a/content/test/test_native_pixmap_manager_ozone.h b/content/test/test_native_pixmap_manager_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..b154f8cc9eb2ef5c98027624904c1512ce31968c
--- /dev/null
+++ b/content/test/test_native_pixmap_manager_ozone.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_TEST_TEST_NATIVE_PIXMAP_MANAGER_OZONE_H_
+#define CONTENT_TEST_TEST_NATIVE_PIXMAP_MANAGER_OZONE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/ozone/public/native_pixmap_manager.h"
+
+namespace content {
+
+class TestNativePixmapManager : public ui::NativePixmapManager {
+ public:
+ static TestNativePixmapManager* GetInstance();
+ ~TestNativePixmapManager() override;
+
+ // ui::NativePixmapManager:
+ void Initialize(const base::FileDescriptor& device_fd) override;
+ std::vector<Configuration> GetSupportedNativePixmapConfigurations()
+ const override;
+
+ private:
+ friend struct TestNativePixmapManagerTrait;
+ TestNativePixmapManager();
+
+ scoped_ptr<ui::NativePixmapManager> pixmap_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestNativePixmapManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_TEST_TEST_NATIVE_PIXMAP_MANAGER_OZONE_H_

Powered by Google App Engine
This is Rietveld 408576698