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

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

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698