| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/demo/mus_demo.h" | 5 #include "services/ui/demo/mus_demo.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "services/service_manager/public/cpp/connector.h" | 9 #include "services/service_manager/public/cpp/connector.h" |
| 10 #include "services/service_manager/public/cpp/service_context.h" | 10 #include "services/service_manager/public/cpp/service_context.h" |
| 11 #include "services/ui/demo/bitmap_uploader.h" | 11 #include "services/ui/demo/bitmap_uploader.h" |
| 12 #include "services/ui/public/cpp/gpu_service.h" | 12 #include "services/ui/public/cpp/gpu/gpu_service.h" |
| 13 #include "services/ui/public/cpp/window.h" | 13 #include "services/ui/public/cpp/window.h" |
| 14 #include "services/ui/public/cpp/window_tree_client.h" | 14 #include "services/ui/public/cpp/window_tree_client.h" |
| 15 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
| 16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
| 17 #include "third_party/skia/include/core/SkImageInfo.h" | 17 #include "third_party/skia/include/core/SkImageInfo.h" |
| 18 #include "third_party/skia/include/core/SkPaint.h" | 18 #include "third_party/skia/include/core/SkPaint.h" |
| 19 #include "third_party/skia/include/core/SkRect.h" | 19 #include "third_party/skia/include/core/SkRect.h" |
| 20 #include "ui/gfx/geometry/rect.h" | 20 #include "ui/gfx/geometry/rect.h" |
| 21 | 21 |
| 22 namespace ui { | 22 namespace ui { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 BitmapUploader::Format bitmap_format = BitmapUploader::BGRA; | 204 BitmapUploader::Format bitmap_format = BitmapUploader::BGRA; |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 // Send frame to MUS via BitmapUploader. | 207 // Send frame to MUS via BitmapUploader. |
| 208 uploader_->SetBitmap(bounds.width(), bounds.height(), std::move(data), | 208 uploader_->SetBitmap(bounds.width(), bounds.height(), std::move(data), |
| 209 bitmap_format); | 209 bitmap_format); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace demo | 212 } // namespace demo |
| 213 } // namespace ui | 213 } // namespace ui |
| OLD | NEW |