| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ozone/common/stub_native_pixmap_manager.h" | 5 #include "ui/ozone/common/stub_native_pixmap_manager.h" |
| 6 | 6 |
| 7 namespace ui { | 7 namespace ui { |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 class StubNativePixmapManager : public NativePixmapManager { | 11 class StubNativePixmapManager : public NativePixmapManager { |
| 12 public: | 12 public: |
| 13 StubNativePixmapManager() {} | 13 StubNativePixmapManager() {} |
| 14 ~StubNativePixmapManager() override {} | 14 ~StubNativePixmapManager() override {} |
| 15 | 15 |
| 16 void Initialize(const base::FileDescriptor& device_fd) override {} |
| 17 |
| 16 std::vector<Configuration> GetSupportedNativePixmapConfigurations() | 18 std::vector<Configuration> GetSupportedNativePixmapConfigurations() |
| 17 const override { | 19 const override { |
| 18 return std::vector<Configuration>(); | 20 return std::vector<Configuration>(); |
| 19 } | 21 } |
| 20 | 22 |
| 21 private: | 23 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(StubNativePixmapManager); | 24 DISALLOW_COPY_AND_ASSIGN(StubNativePixmapManager); |
| 23 }; | 25 }; |
| 24 | 26 |
| 25 } // namespace | 27 } // namespace |
| 26 | 28 |
| 27 NativePixmapManager* CreateStubNativePixmapManager() { | 29 NativePixmapManager* CreateStubNativePixmapManager() { |
| 28 return new StubNativePixmapManager; | 30 return new StubNativePixmapManager; |
| 29 } | 31 } |
| 30 | 32 |
| 31 } // namespace ui | 33 } // namespace ui |
| OLD | NEW |