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

Unified Diff: ui/ozone/platform/dri/test/mock_surface_generator.h

Issue 106633002: GBM Ozone implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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: ui/ozone/platform/dri/test/mock_surface_generator.h
diff --git a/ui/ozone/platform/dri/test/mock_surface_generator.h b/ui/ozone/platform/dri/test/mock_surface_generator.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9b77f8620db503b39400766cb2a823f600d714b
--- /dev/null
+++ b/ui/ozone/platform/dri/test/mock_surface_generator.h
@@ -0,0 +1,40 @@
+// Copyright 2014 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 UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
+#define UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
+
+#include <vector>
+
+#include "ui/ozone/platform/dri/test/mock_dri_surface.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace ui {
+
+class DriWrapper;
+
+class MockSurfaceGenerator : public ScanoutSurfaceGenerator {
+ public:
+ MockSurfaceGenerator(DriWrapper* dri);
+ virtual ~MockSurfaceGenerator();
+
+ std::vector<MockDriSurface*> surfaces() const { return surfaces_; }
+
+ // ScanoutSurfaceGenerator:
+ virtual ScanoutSurface* Create(const gfx::Size& size) OVERRIDE;
+
+ private:
+ DriWrapper* dri_; // Not owned.
+
+ std::vector<MockDriSurface*> surfaces_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockSurfaceGenerator);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
« no previous file with comments | « ui/ozone/platform/dri/screen_manager_unittest.cc ('k') | ui/ozone/platform/dri/test/mock_surface_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698