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/compositor/layer.h" | 5 #include "ui/compositor/layer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 return; | 703 return; |
704 delegate_->OnDelegatedFrameDamage(damage_rect_in_dip); | 704 delegate_->OnDelegatedFrameDamage(damage_rect_in_dip); |
705 } | 705 } |
706 | 706 |
707 void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) { | 707 void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) { |
708 cc_layer_->RequestCopyOfOutput(request.Pass()); | 708 cc_layer_->RequestCopyOfOutput(request.Pass()); |
709 } | 709 } |
710 | 710 |
711 void Layer::PaintContents(SkCanvas* sk_canvas, | 711 void Layer::PaintContents(SkCanvas* sk_canvas, |
712 const gfx::Rect& clip, | 712 const gfx::Rect& clip, |
| 713 bool can_use_lcd_text, |
| 714 bool contents_opaque, |
713 ContentLayerClient::GraphicsContextStatus gc_status) { | 715 ContentLayerClient::GraphicsContextStatus gc_status) { |
714 TRACE_EVENT0("ui", "Layer::PaintContents"); | 716 TRACE_EVENT0("ui", "Layer::PaintContents"); |
715 scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling( | 717 scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling( |
716 sk_canvas, device_scale_factor_)); | 718 sk_canvas, device_scale_factor_)); |
717 if (delegate_) | 719 if (delegate_) |
718 delegate_->OnPaintLayer(canvas.get()); | 720 delegate_->OnPaintLayer(canvas.get()); |
719 } | 721 } |
720 | 722 |
721 bool Layer::FillsBoundsCompletely() const { return fills_bounds_completely_; } | 723 bool Layer::FillsBoundsCompletely() const { return fills_bounds_completely_; } |
722 | 724 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 children_.end(), | 1043 children_.end(), |
1042 std::bind2nd(std::mem_fun(&Layer::RemoveAnimatorsInTreeFromCollection), | 1044 std::bind2nd(std::mem_fun(&Layer::RemoveAnimatorsInTreeFromCollection), |
1043 collection)); | 1045 collection)); |
1044 } | 1046 } |
1045 | 1047 |
1046 bool Layer::IsAnimating() const { | 1048 bool Layer::IsAnimating() const { |
1047 return animator_.get() && animator_->is_animating(); | 1049 return animator_.get() && animator_->is_animating(); |
1048 } | 1050 } |
1049 | 1051 |
1050 } // namespace ui | 1052 } // namespace ui |
OLD | NEW |