Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: ui/compositor/layer.cc

Issue 684653004: Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« cc/layers/content_layer.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« cc/layers/content_layer.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698