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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 1027563003: cc: Send updated tile priority with tiles into tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "base/trace_event/trace_event_argument.h" 10 #include "base/trace_event/trace_event_argument.h"
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 } 1432 }
1433 1433
1434 void LayerImpl::RemoveDependentNeedsPushProperties() { 1434 void LayerImpl::RemoveDependentNeedsPushProperties() {
1435 num_dependents_need_push_properties_--; 1435 num_dependents_need_push_properties_--;
1436 DCHECK_GE(num_dependents_need_push_properties_, 0); 1436 DCHECK_GE(num_dependents_need_push_properties_, 0);
1437 1437
1438 if (!parent_should_know_need_push_properties() && parent_) 1438 if (!parent_should_know_need_push_properties() && parent_)
1439 parent_->RemoveDependentNeedsPushProperties(); 1439 parent_->RemoveDependentNeedsPushProperties();
1440 } 1440 }
1441 1441
1442 void LayerImpl::GetAllTilesForTracing(std::set<const Tile*>* tiles) const { 1442 void LayerImpl::GetAllTilesAndPrioritiesForTracing(
1443 std::map<const Tile*, TilePriority>* tile_map) const {
1443 } 1444 }
1444 1445
1445 void LayerImpl::AsValueInto(base::trace_event::TracedValue* state) const { 1446 void LayerImpl::AsValueInto(base::trace_event::TracedValue* state) const {
1446 TracedValue::MakeDictIntoImplicitSnapshotWithCategory( 1447 TracedValue::MakeDictIntoImplicitSnapshotWithCategory(
1447 TRACE_DISABLED_BY_DEFAULT("cc.debug"), 1448 TRACE_DISABLED_BY_DEFAULT("cc.debug"),
1448 state, 1449 state,
1449 "cc::LayerImpl", 1450 "cc::LayerImpl",
1450 LayerTypeAsString(), 1451 LayerTypeAsString(),
1451 this); 1452 this);
1452 state->SetInteger("layer_id", id()); 1453 state->SetInteger("layer_id", id());
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 gfx::Transform scaled_draw_transform = 1618 gfx::Transform scaled_draw_transform =
1618 draw_properties_.target_space_transform; 1619 draw_properties_.target_space_transform;
1619 scaled_draw_transform.Scale(SK_MScalar1 / scale, SK_MScalar1 / scale); 1620 scaled_draw_transform.Scale(SK_MScalar1 / scale, SK_MScalar1 / scale);
1620 gfx::Size scaled_content_bounds = 1621 gfx::Size scaled_content_bounds =
1621 gfx::ToCeiledSize(gfx::ScaleSize(content_bounds(), scale)); 1622 gfx::ToCeiledSize(gfx::ScaleSize(content_bounds(), scale));
1622 return MathUtil::MapEnclosingClippedRect(scaled_draw_transform, 1623 return MathUtil::MapEnclosingClippedRect(scaled_draw_transform,
1623 gfx::Rect(scaled_content_bounds)); 1624 gfx::Rect(scaled_content_bounds));
1624 } 1625 }
1625 1626
1626 } // namespace cc 1627 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698