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

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

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/heads_up_display_layer_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 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 <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual float GetSkewportTargetTimeInSeconds() const override { 130 virtual float GetSkewportTargetTimeInSeconds() const override {
131 return base_client_->GetSkewportTargetTimeInSeconds(); 131 return base_client_->GetSkewportTargetTimeInSeconds();
132 } 132 }
133 133
134 virtual int GetSkewportExtrapolationLimitInContentPixels() const override { 134 virtual int GetSkewportExtrapolationLimitInContentPixels() const override {
135 return base_client_->GetSkewportExtrapolationLimitInContentPixels(); 135 return base_client_->GetSkewportExtrapolationLimitInContentPixels();
136 } 136 }
137 137
138 virtual WhichTree GetTree() const override { return base_client_->GetTree(); } 138 virtual WhichTree GetTree() const override { return base_client_->GetTree(); }
139 139
140 virtual bool RequiresHighResToDraw() const override {
141 return base_client_->RequiresHighResToDraw();
142 }
143
140 private: 144 private:
141 PictureLayerTilingClient* base_client_; 145 PictureLayerTilingClient* base_client_;
142 Region invalidation_; 146 Region invalidation_;
143 }; 147 };
144 148
145 } // namespace 149 } // namespace
146 150
147 RasterizeAndRecordBenchmarkImpl::RasterizeAndRecordBenchmarkImpl( 151 RasterizeAndRecordBenchmarkImpl::RasterizeAndRecordBenchmarkImpl(
148 scoped_refptr<base::MessageLoopProxy> origin_loop, 152 scoped_refptr<base::MessageLoopProxy> origin_loop,
149 base::Value* value, 153 base::Value* value,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 pixels_rasterized_with_non_solid_color(0), 271 pixels_rasterized_with_non_solid_color(0),
268 pixels_rasterized_as_opaque(0), 272 pixels_rasterized_as_opaque(0),
269 total_layers(0), 273 total_layers(0),
270 total_picture_layers(0), 274 total_picture_layers(0),
271 total_picture_layers_with_no_content(0), 275 total_picture_layers_with_no_content(0),
272 total_picture_layers_off_screen(0) {} 276 total_picture_layers_off_screen(0) {}
273 277
274 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} 278 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {}
275 279
276 } // namespace cc 280 } // namespace cc
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698