| 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 "components/exo/display.h" | 5 #include "components/exo/display.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const gfx::BufferFormat kOverlayFormats[] = { | 38 const gfx::BufferFormat kOverlayFormats[] = { |
| 39 // TODO(dcastagna): Remove RGBX/RGBA once all the platforms using the fullscreen | 39 // TODO(dcastagna): Remove RGBX/RGBA once all the platforms using the fullscreen |
| 40 // optimization will have switched to atomic. | 40 // optimization will have switched to atomic. |
| 41 #if defined(ARCH_CPU_ARM_FAMILY) | 41 #if defined(ARCH_CPU_ARM_FAMILY) |
| 42 gfx::BufferFormat::RGBX_8888, gfx::BufferFormat::RGBA_8888, | 42 gfx::BufferFormat::RGBX_8888, gfx::BufferFormat::RGBA_8888, |
| 43 #endif | 43 #endif |
| 44 gfx::BufferFormat::BGRX_8888, gfx::BufferFormat::BGRA_8888}; | 44 gfx::BufferFormat::BGRX_8888, gfx::BufferFormat::BGRA_8888}; |
| 45 | 45 |
| 46 const gfx::BufferFormat kOverlayFormatsForDrmAtomic[] = { | 46 const gfx::BufferFormat kOverlayFormatsForDrmAtomic[] = { |
| 47 gfx::BufferFormat::RGBX_8888, gfx::BufferFormat::RGBA_8888, | 47 gfx::BufferFormat::RGBX_8888, gfx::BufferFormat::RGBA_8888, |
| 48 gfx::BufferFormat::BGR_565}; | 48 gfx::BufferFormat::BGR_565, gfx::BufferFormat::YUV_420_BIPLANAR}; |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 } // namespace | 51 } // namespace |
| 52 | 52 |
| 53 //////////////////////////////////////////////////////////////////////////////// | 53 //////////////////////////////////////////////////////////////////////////////// |
| 54 // Display, public: | 54 // Display, public: |
| 55 | 55 |
| 56 Display::Display() : Display(nullptr) {} | 56 Display::Display() : Display(nullptr) {} |
| 57 | 57 |
| 58 Display::Display(NotificationSurfaceManager* notification_surface_manager) | 58 Display::Display(NotificationSurfaceManager* notification_surface_manager) |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 notification_surface_manager_->GetSurface(notification_id)) { | 224 notification_surface_manager_->GetSurface(notification_id)) { |
| 225 DLOG(ERROR) << "Invalid notification id, id=" << notification_id; | 225 DLOG(ERROR) << "Invalid notification id, id=" << notification_id; |
| 226 return nullptr; | 226 return nullptr; |
| 227 } | 227 } |
| 228 | 228 |
| 229 return base::MakeUnique<NotificationSurface>(notification_surface_manager_, | 229 return base::MakeUnique<NotificationSurface>(notification_surface_manager_, |
| 230 surface, notification_id); | 230 surface, notification_id); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace exo | 233 } // namespace exo |
| OLD | NEW |