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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 14301021: cc: Don't pass simple well-defined classes by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 554
555 void LayerTreeHost::SetNeedsFullTreeSync() { 555 void LayerTreeHost::SetNeedsFullTreeSync() {
556 needs_full_tree_sync_ = true; 556 needs_full_tree_sync_ = true;
557 SetNeedsCommit(); 557 SetNeedsCommit();
558 } 558 }
559 559
560 void LayerTreeHost::SetNeedsRedraw() { 560 void LayerTreeHost::SetNeedsRedraw() {
561 SetNeedsRedrawRect(gfx::Rect(device_viewport_size_)); 561 SetNeedsRedrawRect(gfx::Rect(device_viewport_size_));
562 } 562 }
563 563
564 void LayerTreeHost::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 564 void LayerTreeHost::SetNeedsRedrawRect(gfx::Rect damage_rect) {
565 proxy_->SetNeedsRedraw(damage_rect); 565 proxy_->SetNeedsRedraw(damage_rect);
566 if (!proxy_->ImplThread()) 566 if (!proxy_->ImplThread())
567 client_->ScheduleComposite(); 567 client_->ScheduleComposite();
568 } 568 }
569 569
570 bool LayerTreeHost::CommitRequested() const { 570 bool LayerTreeHost::CommitRequested() const {
571 return proxy_->CommitRequested(); 571 return proxy_->CommitRequested();
572 } 572 }
573 573
574 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, 574 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events,
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 bool start_ready_animations = true; 1095 bool start_ready_animations = true;
1096 (*iter).second->UpdateState(start_ready_animations, NULL); 1096 (*iter).second->UpdateState(start_ready_animations, NULL);
1097 } 1097 }
1098 } 1098 }
1099 1099
1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1101 return proxy_->CapturePicture(); 1101 return proxy_->CapturePicture();
1102 } 1102 }
1103 1103
1104 } // namespace cc 1104 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698