Index: ui/base/ozone/surface_factory_ozone.cc |
diff --git a/ui/base/ozone/surface_factory_ozone.cc b/ui/base/ozone/surface_factory_ozone.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7dc7ab36606af98c0f00330d7d959dd478e7a9a7 |
--- /dev/null |
+++ b/ui/base/ozone/surface_factory_ozone.cc |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2013 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/base/ozone/surface_factory_ozone.h" |
+ |
+#include "base/memory/scoped_ptr.h" |
+ |
+namespace ui { |
+ |
+// Implementation. |
+scoped_ptr<SurfaceFactoryOzone> impl_; |
+ |
+SurfaceFactoryOzone::SurfaceFactoryOzone() { |
+} |
+ |
+SurfaceFactoryOzone::~SurfaceFactoryOzone() { |
+} |
+ |
+SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() { |
+ return impl_.get(); |
+ } |
+ |
+void SurfaceFactoryOzone::SetDelegate(SurfaceFactoryOzone* impl) { |
+ impl_.reset(impl); |
+} |
+ |
+const char* SurfaceFactoryOzone::DefaultDisplaySpec() { |
+ return getenv("ASH_DISPLAY_SPEC") ?: "720x1280*2"; |
+} |
+ |
+} // namespace ui |