OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/aura_shell/image_grid.h" | 5 #include "ash/wm/image_grid.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
10 #include "ui/gfx/image/image.h" | 10 #include "ui/gfx/image/image.h" |
11 #include "ui/gfx/transform.h" | 11 #include "ui/gfx/transform.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "third_party/skia/include/core/SkXfermode.h" | 13 #include "third_party/skia/include/core/SkXfermode.h" |
14 | 14 |
15 using std::max; | 15 using std::max; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 painter_ptr->reset(new ImagePainter(image)); | 238 painter_ptr->reset(new ImagePainter(image)); |
239 layer_ptr->get()->set_delegate(painter_ptr->get()); | 239 layer_ptr->get()->set_delegate(painter_ptr->get()); |
240 layer_ptr->get()->SetFillsBoundsOpaquely(false); | 240 layer_ptr->get()->SetFillsBoundsOpaquely(false); |
241 layer_ptr->get()->SetVisible(true); | 241 layer_ptr->get()->SetVisible(true); |
242 layer_->Add(layer_ptr->get()); | 242 layer_->Add(layer_ptr->get()); |
243 } | 243 } |
244 | 244 |
245 } // namespace internal | 245 } // namespace internal |
246 } // namespace aura_shell | 246 } // namespace aura_shell |
OLD | NEW |