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

Side by Side Diff: cc/debug/rasterize_and_record_benchmark_impl.cc

Issue 2710593003: cc: Fix const value pattern by replacing it by non-const or reference. (Closed)
Patch Set: update rebase Created 3 years, 10 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/animation/animation_host_perftest.cc ('k') | cc/input/page_scale_animation.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/debug/rasterize_and_record_benchmark_impl.h" 5 #include "cc/debug/rasterize_and_record_benchmark_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <limits> 10 #include <limits>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 if (duration < *min_time) 63 if (duration < *min_time)
64 *min_time = duration; 64 *min_time = duration;
65 } 65 }
66 } 66 }
67 67
68 class FixedInvalidationPictureLayerTilingClient 68 class FixedInvalidationPictureLayerTilingClient
69 : public PictureLayerTilingClient { 69 : public PictureLayerTilingClient {
70 public: 70 public:
71 FixedInvalidationPictureLayerTilingClient( 71 FixedInvalidationPictureLayerTilingClient(
72 PictureLayerTilingClient* base_client, 72 PictureLayerTilingClient* base_client,
73 const Region invalidation) 73 const Region& invalidation)
74 : base_client_(base_client), invalidation_(invalidation) {} 74 : base_client_(base_client), invalidation_(invalidation) {}
75 75
76 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info) override { 76 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info) override {
77 return base_client_->CreateTile(info); 77 return base_client_->CreateTile(info);
78 } 78 }
79 79
80 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override { 80 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override {
81 return base_client_->CalculateTileSize(content_bounds); 81 return base_client_->CalculateTileSize(content_bounds);
82 } 82 }
83 83
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 total_memory_usage(0), 217 total_memory_usage(0),
218 total_layers(0), 218 total_layers(0),
219 total_picture_layers(0), 219 total_picture_layers(0),
220 total_picture_layers_with_no_content(0), 220 total_picture_layers_with_no_content(0),
221 total_picture_layers_off_screen(0) { 221 total_picture_layers_off_screen(0) {
222 } 222 }
223 223
224 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} 224 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {}
225 225
226 } // namespace cc 226 } // namespace cc
OLDNEW
« no previous file with comments | « cc/animation/animation_host_perftest.cc ('k') | cc/input/page_scale_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698