OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/gfx/ozone/surface_factory_ozone.h" | 5 #include "ui/gfx/ozone/surface_factory_ozone.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "ui/gfx/ozone/impl/file_surface_factory_ozone.h" | |
11 #include "ui/gfx/ozone/impl/software_surface_factory_ozone.h" | |
12 | 10 |
13 namespace gfx { | 11 namespace gfx { |
14 | 12 |
15 // static | 13 // static |
16 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; | 14 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; |
17 | 15 |
18 class SurfaceFactoryOzoneStub : public SurfaceFactoryOzone { | 16 class SurfaceFactoryOzoneStub : public SurfaceFactoryOzone { |
19 public: | 17 public: |
20 SurfaceFactoryOzoneStub() {} | 18 SurfaceFactoryOzoneStub() {} |
21 virtual ~SurfaceFactoryOzoneStub() {} | 19 virtual ~SurfaceFactoryOzoneStub() {} |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 const int32* desired_attributes) { | 83 const int32* desired_attributes) { |
86 return desired_attributes; | 84 return desired_attributes; |
87 } | 85 } |
88 | 86 |
89 // static | 87 // static |
90 SurfaceFactoryOzone* SurfaceFactoryOzone::CreateTestHelper() { | 88 SurfaceFactoryOzone* SurfaceFactoryOzone::CreateTestHelper() { |
91 return new SurfaceFactoryOzoneStub; | 89 return new SurfaceFactoryOzoneStub; |
92 } | 90 } |
93 | 91 |
94 } // namespace gfx | 92 } // namespace gfx |
OLD | NEW |