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

Unified Diff: cc/debug/rasterize_and_record_benchmark.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rasterize_and_record_benchmark.h
diff --git a/cc/debug/rasterize_and_record_benchmark.h b/cc/debug/rasterize_and_record_benchmark.h
deleted file mode 100644
index bed446d6f657808942b05b99d4b9e0d6cb2b9ace..0000000000000000000000000000000000000000
--- a/cc/debug/rasterize_and_record_benchmark.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_
-#define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_
-
-#include <map>
-#include <utility>
-#include <vector>
-
-#include "base/memory/weak_ptr.h"
-#include "base/time/time.h"
-#include "cc/debug/micro_benchmark_controller.h"
-#include "cc/resources/picture.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace cc {
-
-class LayerTreeHost;
-class Layer;
-class RasterizeAndRecordBenchmark : public MicroBenchmark {
- public:
- explicit RasterizeAndRecordBenchmark(
- scoped_ptr<base::Value> value,
- const MicroBenchmark::DoneCallback& callback);
- ~RasterizeAndRecordBenchmark() override;
-
- // Implements MicroBenchmark interface.
- void DidUpdateLayers(LayerTreeHost* host) override;
- void RunOnLayer(PictureLayer* layer) override;
-
- scoped_ptr<MicroBenchmarkImpl> CreateBenchmarkImpl(
- scoped_refptr<base::MessageLoopProxy> origin_loop) override;
-
- private:
- void RunOnDisplayListLayer(PictureLayer* layer,
- const gfx::Rect& visible_content_rect);
- void RunOnPictureLayer(PictureLayer* layer,
- const gfx::Rect& visible_content_rect);
-
- void RecordRasterResults(scoped_ptr<base::Value> results);
-
- struct RecordResults {
- RecordResults();
- ~RecordResults();
-
- int pixels_recorded;
- size_t bytes_used;
- base::TimeDelta total_best_time[RecordingSource::RECORDING_MODE_COUNT];
- };
-
- RecordResults record_results_;
- int record_repeat_count_;
- scoped_ptr<base::Value> settings_;
- scoped_ptr<base::DictionaryValue> results_;
-
- // The following is used in DCHECKs.
- bool main_thread_benchmark_done_;
-
- LayerTreeHost* host_;
-
- base::WeakPtrFactory<RasterizeAndRecordBenchmark> weak_ptr_factory_;
-};
-
-} // namespace cc
-
-#endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_
« 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