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

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

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
« no previous file with comments | « ui/ozone/platform/dri/test/mock_surface_generator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/test/mock_surface_generator.cc
diff --git a/ui/ozone/platform/dri/test/mock_surface_generator.cc b/ui/ozone/platform/dri/test/mock_surface_generator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..97df5bdbd2cac09fef6ff167760d514d59a06018
--- /dev/null
+++ b/ui/ozone/platform/dri/test/mock_surface_generator.cc
@@ -0,0 +1,18 @@
+// 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.
+
+#include "ui/ozone/platform/dri/test/mock_surface_generator.h"
+
+namespace ui {
+
+MockSurfaceGenerator::MockSurfaceGenerator(DriWrapper* dri) : dri_(dri) {}
+
+MockSurfaceGenerator::~MockSurfaceGenerator() {}
+
+ScanoutSurface* MockSurfaceGenerator::Create(const gfx::Size& size) {
+ surfaces_.push_back(new MockDriSurface(dri_, size));
+ return surfaces_.back();
+}
+
+} // namespace ui
« no previous file with comments | « ui/ozone/platform/dri/test/mock_surface_generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698