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

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: update only when needed 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
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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 state->EndArray(); 1401 state->EndArray();
1402 1402
1403 state->BeginArray("pictures"); 1403 state->BeginArray("pictures");
1404 pile_->AsValueInto(state); 1404 pile_->AsValueInto(state);
1405 state->EndArray(); 1405 state->EndArray();
1406 1406
1407 state->BeginArray("invalidation"); 1407 state->BeginArray("invalidation");
1408 invalidation_.AsValueInto(state); 1408 invalidation_.AsValueInto(state);
1409 state->EndArray(); 1409 state->EndArray();
1410 1410
1411 state->SetBoolean(
1412 "invalidation_includes_first_paint",
1413 debug_info() && debug_info()->IncludesFirstPaintInvalidation());
1414
1411 state->BeginArray("coverage_tiles"); 1415 state->BeginArray("coverage_tiles");
1412 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(), 1416 for (PictureLayerTilingSet::CoverageIterator iter(tilings_.get(),
1413 contents_scale_x(), 1417 contents_scale_x(),
1414 gfx::Rect(content_bounds()), 1418 gfx::Rect(content_bounds()),
1415 ideal_contents_scale_); 1419 ideal_contents_scale_);
1416 iter; 1420 iter;
1417 ++iter) { 1421 ++iter) {
1418 state->BeginDictionary(); 1422 state->BeginDictionary();
1419 1423
1420 state->BeginArray("geometry_rect"); 1424 state->BeginArray("geometry_rect");
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); 1755 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange();
1752 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; 1756 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start;
1753 return tiling_range.end - 1 - current_tiling_range_offset; 1757 return tiling_range.end - 1 - current_tiling_range_offset;
1754 } 1758 }
1755 } 1759 }
1756 NOTREACHED(); 1760 NOTREACHED();
1757 return 0; 1761 return 0;
1758 } 1762 }
1759 1763
1760 } // namespace cc 1764 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698