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

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

Issue 676953003: cc: Always keep the PictureLayerImpl::twin_layer_ pointer valid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: twins: anothercheck Created 6 years, 1 month 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 | « no previous file | cc/layers/picture_layer_impl.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 <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 PicturePileImpl* GetPile() override { return base_client_->GetPile(); } 102 PicturePileImpl* GetPile() override { return base_client_->GetPile(); }
103 103
104 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override { 104 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override {
105 return base_client_->CalculateTileSize(content_bounds); 105 return base_client_->CalculateTileSize(content_bounds);
106 } 106 }
107 107
108 // This is the only function that returns something different from the base 108 // This is the only function that returns something different from the base
109 // client. Avoids sharing tiles in this area. 109 // client. Avoids sharing tiles in this area.
110 const Region* GetPendingInvalidation() override { return &invalidation_; } 110 const Region* GetPendingInvalidation() override { return &invalidation_; }
111 111
112 const PictureLayerTiling* GetTwinTiling( 112 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
113 const PictureLayerTiling* tiling) const override { 113 const PictureLayerTiling* tiling) const override {
114 return base_client_->GetTwinTiling(tiling); 114 return base_client_->GetPendingOrActiveTwinTiling(tiling);
115 } 115 }
116 116
117 PictureLayerTiling* GetRecycledTwinTiling( 117 PictureLayerTiling* GetRecycledTwinTiling(
118 const PictureLayerTiling* tiling) override { 118 const PictureLayerTiling* tiling) override {
119 return base_client_->GetRecycledTwinTiling(tiling); 119 return base_client_->GetRecycledTwinTiling(tiling);
120 } 120 }
121 121
122 size_t GetMaxTilesForInterestArea() const override { 122 size_t GetMaxTilesForInterestArea() const override {
123 return base_client_->GetMaxTilesForInterestArea(); 123 return base_client_->GetMaxTilesForInterestArea();
124 } 124 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 pixels_rasterized_with_non_solid_color(0), 268 pixels_rasterized_with_non_solid_color(0),
269 pixels_rasterized_as_opaque(0), 269 pixels_rasterized_as_opaque(0),
270 total_layers(0), 270 total_layers(0),
271 total_picture_layers(0), 271 total_picture_layers(0),
272 total_picture_layers_with_no_content(0), 272 total_picture_layers_with_no_content(0),
273 total_picture_layers_off_screen(0) {} 273 total_picture_layers_off_screen(0) {}
274 274
275 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} 275 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {}
276 276
277 } // namespace cc 277 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698