OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |