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

Side by Side Diff: cc/resources/tile_manager.cc

Issue 26031002: cc: Remove unused metrics from RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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/resources/skpicture_content_layer_updater.cc ('k') | cc/test/fake_picture_pile_impl.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 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/resources/tile_manager.h" 5 #include "cc/resources/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 decode_tasks.Insert(decode_task); 828 decode_tasks.Insert(decode_task);
829 existing_pixel_refs[id] = decode_task; 829 existing_pixel_refs[id] = decode_task;
830 } 830 }
831 831
832 return RasterWorkerPool::CreateRasterTask( 832 return RasterWorkerPool::CreateRasterTask(
833 const_resource, 833 const_resource,
834 tile->picture_pile(), 834 tile->picture_pile(),
835 tile->content_rect(), 835 tile->content_rect(),
836 tile->contents_scale(), 836 tile->contents_scale(),
837 mts.raster_mode, 837 mts.raster_mode,
838 mts.tree_bin[PENDING_TREE] == NOW_BIN,
reveman 2013/10/07 14:12:57 I think you can also make tree_bin local to GetTil
ernstm 2013/10/07 18:19:07 Done.
839 mts.resolution, 838 mts.resolution,
840 tile->layer_id(), 839 tile->layer_id(),
841 static_cast<const void *>(tile), 840 static_cast<const void *>(tile),
842 tile->source_frame_number(), 841 tile->source_frame_number(),
843 rendering_stats_instrumentation_, 842 rendering_stats_instrumentation_,
844 base::Bind(&TileManager::OnRasterTaskCompleted, 843 base::Bind(&TileManager::OnRasterTaskCompleted,
845 base::Unretained(this), 844 base::Unretained(this),
846 tile->id(), 845 tile->id(),
847 base::Passed(&resource), 846 base::Passed(&resource),
848 mts.raster_mode), 847 mts.raster_mode),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 can_use_lcd_text)); 935 can_use_lcd_text));
937 DCHECK(tiles_.find(tile->id()) == tiles_.end()); 936 DCHECK(tiles_.find(tile->id()) == tiles_.end());
938 937
939 tiles_[tile->id()] = tile; 938 tiles_[tile->id()] = tile;
940 used_layer_counts_[tile->layer_id()]++; 939 used_layer_counts_[tile->layer_id()]++;
941 prioritized_tiles_dirty_ = true; 940 prioritized_tiles_dirty_ = true;
942 return tile; 941 return tile;
943 } 942 }
944 943
945 } // namespace cc 944 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/skpicture_content_layer_updater.cc ('k') | cc/test/fake_picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698