Chromium Code Reviews| 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..84ae372d1f8868df41afa70f6d463900cf096fd5 |
| --- /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_; |
|
sky
2013/05/23 21:21:32
style guide says no static initializers.
rjkroege
2013/05/23 23:34:09
Done: now Lazy.
|
| + |
| +SurfaceFactoryOzone::SurfaceFactoryOzone() { |
| +} |
| + |
| +SurfaceFactoryOzone::~SurfaceFactoryOzone() { |
| +} |
| + |
| +SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() { |
| + return impl_.get(); |
| + } |
| + |
| +void SurfaceFactoryOzone::SetInstance(SurfaceFactoryOzone* impl) { |
| + impl_.reset(impl); |
| +} |
| + |
| +const char* SurfaceFactoryOzone::DefaultDisplaySpec() { |
| + return getenv("ASH_DISPLAY_SPEC") ?: "720x1280*2"; |
|
sky
2013/05/23 21:21:32
Does this do what you want? And the spacing is off
rjkroege
2013/05/23 23:34:09
Done.
|
| +} |
| + |
| +} // namespace ui |