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

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

Issue 547463002: cc: Don't make tiles for mask layers that are too big for a texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hugemasks: rebase-past-mask-analysis Created 6 years, 3 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
« no previous file with comments | « cc/trees/layer_tree_impl.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 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_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 DRAW_MODE_RESOURCELESS_SOFTWARE); 461 DRAW_MODE_RESOURCELESS_SOFTWARE);
462 462
463 ++render_surface_layer_list_id_; 463 ++render_surface_layer_list_id_;
464 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( 464 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs(
465 root_layer(), 465 root_layer(),
466 DrawViewportSize(), 466 DrawViewportSize(),
467 layer_tree_host_impl_->DrawTransform(), 467 layer_tree_host_impl_->DrawTransform(),
468 device_scale_factor(), 468 device_scale_factor(),
469 total_page_scale_factor(), 469 total_page_scale_factor(),
470 page_scale_layer, 470 page_scale_layer,
471 MaxTextureSize(), 471 resource_provider()->max_texture_size(),
472 settings().can_use_lcd_text, 472 settings().can_use_lcd_text,
473 can_render_to_separate_surface, 473 can_render_to_separate_surface,
474 settings().layer_transforms_should_scale_layer_contents, 474 settings().layer_transforms_should_scale_layer_contents,
475 &render_surface_layer_list_, 475 &render_surface_layer_list_,
476 render_surface_layer_list_id_); 476 render_surface_layer_list_id_);
477 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 477 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
478 } 478 }
479 479
480 { 480 {
481 TRACE_EVENT2("cc", 481 TRACE_EVENT2("cc",
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 return tree->LayerById(id); 717 return tree->LayerById(id);
718 } 718 }
719 719
720 LayerImpl* LayerTreeImpl::FindRecycleTreeLayerById(int id) { 720 LayerImpl* LayerTreeImpl::FindRecycleTreeLayerById(int id) {
721 LayerTreeImpl* tree = layer_tree_host_impl_->recycle_tree(); 721 LayerTreeImpl* tree = layer_tree_host_impl_->recycle_tree();
722 if (!tree) 722 if (!tree)
723 return NULL; 723 return NULL;
724 return tree->LayerById(id); 724 return tree->LayerById(id);
725 } 725 }
726 726
727 int LayerTreeImpl::MaxTextureSize() const {
728 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size;
729 }
730
731 bool LayerTreeImpl::PinchGestureActive() const { 727 bool LayerTreeImpl::PinchGestureActive() const {
732 return layer_tree_host_impl_->pinch_gesture_active(); 728 return layer_tree_host_impl_->pinch_gesture_active();
733 } 729 }
734 730
735 BeginFrameArgs LayerTreeImpl::CurrentBeginFrameArgs() const { 731 BeginFrameArgs LayerTreeImpl::CurrentBeginFrameArgs() const {
736 return layer_tree_host_impl_->CurrentBeginFrameArgs(); 732 return layer_tree_host_impl_->CurrentBeginFrameArgs();
737 } 733 }
738 734
739 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const { 735 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const {
740 return layer_tree_host_impl_->begin_impl_frame_interval(); 736 return layer_tree_host_impl_->begin_impl_frame_interval();
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 1418
1423 void LayerTreeImpl::InputScrollAnimationFinished() { 1419 void LayerTreeImpl::InputScrollAnimationFinished() {
1424 layer_tree_host_impl_->ScrollEnd(); 1420 layer_tree_host_impl_->ScrollEnd();
1425 } 1421 }
1426 1422
1427 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { 1423 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const {
1428 return proxy()->blocking_main_thread_task_runner(); 1424 return proxy()->blocking_main_thread_task_runner();
1429 } 1425 }
1430 1426
1431 } // namespace cc 1427 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698