Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/base/ozone/surface_factory_ozone.h" | |
| 6 | |
| 7 #include "base/memory/scoped_ptr.h" | |
| 8 | |
| 9 namespace ui { | |
| 10 | |
| 11 // Implementation. | |
| 12 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.
| |
| 13 | |
| 14 SurfaceFactoryOzone::SurfaceFactoryOzone() { | |
| 15 } | |
| 16 | |
| 17 SurfaceFactoryOzone::~SurfaceFactoryOzone() { | |
| 18 } | |
| 19 | |
| 20 SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() { | |
| 21 return impl_.get(); | |
| 22 } | |
| 23 | |
| 24 void SurfaceFactoryOzone::SetInstance(SurfaceFactoryOzone* impl) { | |
| 25 impl_.reset(impl); | |
| 26 } | |
| 27 | |
| 28 const char* SurfaceFactoryOzone::DefaultDisplaySpec() { | |
| 29 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.
| |
| 30 } | |
| 31 | |
| 32 } // namespace ui | |
| OLD | NEW |