| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/wm/core/image_grid.h" | 5 #include "ui/wm/core/image_grid.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "third_party/skia/include/core/SkXfermode.h" | |
| 11 #include "ui/compositor/dip_util.h" | 10 #include "ui/compositor/dip_util.h" |
| 12 #include "ui/compositor/paint_recorder.h" | 11 #include "ui/compositor/paint_recorder.h" |
| 13 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/gfx/geometry/rect_conversions.h" | 14 #include "ui/gfx/geometry/rect_conversions.h" |
| 16 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 17 #include "ui/gfx/geometry/size_conversions.h" | 16 #include "ui/gfx/geometry/size_conversions.h" |
| 18 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
| 19 #include "ui/gfx/image/image_skia_operations.h" | 18 #include "ui/gfx/image/image_skia_operations.h" |
| 20 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 layer_ptr->get()->SetBounds(gfx::Rect(0, 0, size.width(), size.height())); | 331 layer_ptr->get()->SetBounds(gfx::Rect(0, 0, size.width(), size.height())); |
| 333 | 332 |
| 334 painter_ptr->reset(new ImagePainter(image_skia)); | 333 painter_ptr->reset(new ImagePainter(image_skia)); |
| 335 layer_ptr->get()->set_delegate(painter_ptr->get()); | 334 layer_ptr->get()->set_delegate(painter_ptr->get()); |
| 336 layer_ptr->get()->SetFillsBoundsOpaquely(false); | 335 layer_ptr->get()->SetFillsBoundsOpaquely(false); |
| 337 layer_ptr->get()->SetVisible(true); | 336 layer_ptr->get()->SetVisible(true); |
| 338 layer_->Add(layer_ptr->get()); | 337 layer_->Add(layer_ptr->get()); |
| 339 } | 338 } |
| 340 | 339 |
| 341 } // namespace wm | 340 } // namespace wm |
| OLD | NEW |