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

Side by Side Diff: ui/base/ozone/surface_factory_ozone.cc

Issue 13886018: Add a factory and defines for native Linux surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: additional proofreading Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_;
13
14 SurfaceFactoryOzone::SurfaceFactoryOzone() {
15 }
16
17 SurfaceFactoryOzone::~SurfaceFactoryOzone() {
18 }
19
20 SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() {
21 return impl_.get();
22 }
23
24 void SurfaceFactoryOzone::SetDelegate(SurfaceFactoryOzone* impl) {
25 impl_.reset(impl);
26 }
27
28 const char* SurfaceFactoryOzone::DefaultDisplaySpec() {
29 return getenv("ASH_DISPLAY_SPEC") ?: "720x1280*2";
30 }
31
32 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698