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

Side by Side Diff: cc/debug/rasterize_and_record_benchmark.h

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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
« no previous file with comments | « cc/debug/picture_record_benchmark.cc ('k') | cc/debug/rasterize_and_record_benchmark.cc » ('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 #ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ 5 #ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_
6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ 6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 ~RasterizeAndRecordBenchmark() override; 30 ~RasterizeAndRecordBenchmark() override;
31 31
32 // Implements MicroBenchmark interface. 32 // Implements MicroBenchmark interface.
33 void DidUpdateLayers(LayerTreeHost* host) override; 33 void DidUpdateLayers(LayerTreeHost* host) override;
34 void RunOnLayer(PictureLayer* layer) override; 34 void RunOnLayer(PictureLayer* layer) override;
35 35
36 scoped_ptr<MicroBenchmarkImpl> CreateBenchmarkImpl( 36 scoped_ptr<MicroBenchmarkImpl> CreateBenchmarkImpl(
37 scoped_refptr<base::MessageLoopProxy> origin_loop) override; 37 scoped_refptr<base::MessageLoopProxy> origin_loop) override;
38 38
39 private: 39 private:
40 void Run(Layer* layer);
41 void RunOnDisplayListLayer(PictureLayer* layer, 40 void RunOnDisplayListLayer(PictureLayer* layer,
42 const gfx::Rect& visible_content_rect); 41 const gfx::Rect& visible_content_rect);
43 void RunOnPictureLayer(PictureLayer* layer, 42 void RunOnPictureLayer(PictureLayer* layer,
44 const gfx::Rect& visible_content_rect); 43 const gfx::Rect& visible_content_rect);
45 44
46 void RecordRasterResults(scoped_ptr<base::Value> results); 45 void RecordRasterResults(scoped_ptr<base::Value> results);
47 46
48 struct RecordResults { 47 struct RecordResults {
49 RecordResults(); 48 RecordResults();
50 ~RecordResults(); 49 ~RecordResults();
(...skipping 12 matching lines...) Expand all
63 bool main_thread_benchmark_done_; 62 bool main_thread_benchmark_done_;
64 63
65 LayerTreeHost* host_; 64 LayerTreeHost* host_;
66 65
67 base::WeakPtrFactory<RasterizeAndRecordBenchmark> weak_ptr_factory_; 66 base::WeakPtrFactory<RasterizeAndRecordBenchmark> weak_ptr_factory_;
68 }; 67 };
69 68
70 } // namespace cc 69 } // namespace cc
71 70
72 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ 71 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_
OLDNEW
« no previous file with comments | « cc/debug/picture_record_benchmark.cc ('k') | cc/debug/rasterize_and_record_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698