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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 class FixedInvalidationPictureLayerTilingClient | 89 class FixedInvalidationPictureLayerTilingClient |
90 : public PictureLayerTilingClient { | 90 : public PictureLayerTilingClient { |
91 public: | 91 public: |
92 FixedInvalidationPictureLayerTilingClient( | 92 FixedInvalidationPictureLayerTilingClient( |
93 PictureLayerTilingClient* base_client, | 93 PictureLayerTilingClient* base_client, |
94 const Region invalidation) | 94 const Region invalidation) |
95 : base_client_(base_client), invalidation_(invalidation) {} | 95 : base_client_(base_client), invalidation_(invalidation) {} |
96 | 96 |
97 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 97 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
98 const gfx::Rect& content_rect) override { | 98 const gfx::Rect& content_rect, |
99 return base_client_->CreateTile(tiling, content_rect); | 99 int flags) override { |
| 100 return base_client_->CreateTile(tiling, content_rect, flags); |
100 } | 101 } |
101 | 102 |
102 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override { | 103 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override { |
103 return base_client_->CalculateTileSize(content_bounds); | 104 return base_client_->CalculateTileSize(content_bounds); |
104 } | 105 } |
105 | 106 |
106 // This is the only function that returns something different from the base | 107 // This is the only function that returns something different from the base |
107 // client. Avoids sharing tiles in this area. | 108 // client. Avoids sharing tiles in this area. |
108 const Region* GetPendingInvalidation() override { return &invalidation_; } | 109 const Region* GetPendingInvalidation() override { return &invalidation_; } |
109 | 110 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 total_memory_usage(0), | 278 total_memory_usage(0), |
278 total_layers(0), | 279 total_layers(0), |
279 total_picture_layers(0), | 280 total_picture_layers(0), |
280 total_picture_layers_with_no_content(0), | 281 total_picture_layers_with_no_content(0), |
281 total_picture_layers_off_screen(0) { | 282 total_picture_layers_off_screen(0) { |
282 } | 283 } |
283 | 284 |
284 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} | 285 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} |
285 | 286 |
286 } // namespace cc | 287 } // namespace cc |
OLD | NEW |