| 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/platform/cast/client_native_pixmap_factory_cast.h" | 5 #include "ui/ozone/platform/cast/client_native_pixmap_factory_cast.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/gfx/buffer_types.h" | 8 #include "ui/gfx/buffer_types.h" |
| 9 #include "ui/ozone/public/client_native_pixmap.h" | 9 #include "ui/ozone/public/client_native_pixmap.h" |
| 10 #include "ui/ozone/public/client_native_pixmap_factory.h" // nogncheck | 10 #include "ui/ozone/public/client_native_pixmap_factory.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // Dummy ClientNativePixmap implementation for Cast ozone. | 15 // Dummy ClientNativePixmap implementation for Cast ozone. |
| 16 // Our NativePixmaps are just used to plumb an overlay frame through, | 16 // Our NativePixmaps are just used to plumb an overlay frame through, |
| 17 // so they get instantiated, but not used. | 17 // so they get instantiated, but not used. |
| 18 class ClientNativePixmapCast : public ClientNativePixmap { | 18 class ClientNativePixmapCast : public ClientNativePixmap { |
| 19 public: | 19 public: |
| 20 // ClientNativePixmap implementation: | 20 // ClientNativePixmap implementation: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 } | 45 } |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace | 48 } // namespace |
| 49 | 49 |
| 50 ClientNativePixmapFactory* CreateClientNativePixmapFactoryCast() { | 50 ClientNativePixmapFactory* CreateClientNativePixmapFactoryCast() { |
| 51 return new ClientNativePixmapFactoryCast(); | 51 return new ClientNativePixmapFactoryCast(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace ui | 54 } // namespace ui |
| OLD | NEW |