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

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

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export info for frameviewer too Created 6 years, 4 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
« cc/layers/layer.cc ('K') | « cc/layers/layer_impl.cc ('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 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/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/debug/trace_event_argument.h" 10 #include "base/debug/trace_event_argument.h"
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 state->EndArray(); 1347 state->EndArray();
1348 1348
1349 state->BeginArray("pictures"); 1349 state->BeginArray("pictures");
1350 pile_->AsValueInto(state); 1350 pile_->AsValueInto(state);
1351 state->EndArray(); 1351 state->EndArray();
1352 1352
1353 state->BeginArray("invalidation"); 1353 state->BeginArray("invalidation");
1354 invalidation_.AsValueInto(state); 1354 invalidation_.AsValueInto(state);
1355 state->EndArray(); 1355 state->EndArray();
1356 1356
1357 state->SetBoolean("invalidation_includes_first_paint",
1358 includes_first_paint_invalidation());
1359
1357 state->BeginArray("coverage_tiles"); 1360 state->BeginArray("coverage_tiles");
1358 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), 1361 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(),
1359 contents_scale_x(), 1362 contents_scale_x(),
1360 gfx::Rect(content_bounds()), 1363 gfx::Rect(content_bounds()),
1361 ideal_contents_scale_); 1364 ideal_contents_scale_);
1362 iter; 1365 iter;
1363 ++iter) { 1366 ++iter) {
1364 state->BeginDictionary(); 1367 state->BeginDictionary();
1365 1368
1366 state->BeginArray("geometry_rect"); 1369 state->BeginArray("geometry_rect");
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); 1700 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange();
1698 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; 1701 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start;
1699 return tiling_range.end - 1 - current_tiling_range_offset; 1702 return tiling_range.end - 1 - current_tiling_range_offset;
1700 } 1703 }
1701 } 1704 }
1702 NOTREACHED(); 1705 NOTREACHED();
1703 return 0; 1706 return 0;
1704 } 1707 }
1705 1708
1706 } // namespace cc 1709 } // namespace cc
OLDNEW
« cc/layers/layer.cc ('K') | « cc/layers/layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698