| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool HasValidTilePriorities() const override { | 93 bool HasValidTilePriorities() const override { |
| 94 return base_client_->HasValidTilePriorities(); | 94 return base_client_->HasValidTilePriorities(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool RequiresHighResToDraw() const override { | 97 bool RequiresHighResToDraw() const override { |
| 98 return base_client_->RequiresHighResToDraw(); | 98 return base_client_->RequiresHighResToDraw(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool EnablePartialRaster() const override { |
| 102 return base_client_->EnablePartialRaster(); |
| 103 } |
| 104 |
| 101 private: | 105 private: |
| 102 PictureLayerTilingClient* base_client_; | 106 PictureLayerTilingClient* base_client_; |
| 103 Region invalidation_; | 107 Region invalidation_; |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 } // namespace | 110 } // namespace |
| 107 | 111 |
| 108 RasterizeAndRecordBenchmarkImpl::RasterizeAndRecordBenchmarkImpl( | 112 RasterizeAndRecordBenchmarkImpl::RasterizeAndRecordBenchmarkImpl( |
| 109 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner, | 113 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner, |
| 110 base::Value* value, | 114 base::Value* value, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 total_memory_usage(0), | 219 total_memory_usage(0), |
| 216 total_layers(0), | 220 total_layers(0), |
| 217 total_picture_layers(0), | 221 total_picture_layers(0), |
| 218 total_picture_layers_with_no_content(0), | 222 total_picture_layers_with_no_content(0), |
| 219 total_picture_layers_off_screen(0) { | 223 total_picture_layers_off_screen(0) { |
| 220 } | 224 } |
| 221 | 225 |
| 222 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} | 226 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} |
| 223 | 227 |
| 224 } // namespace cc | 228 } // namespace cc |
| OLD | NEW |