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

Unified Diff: cc/debug/micro_benchmark_controller.cc

Issue 298723013: cc: Add invalidation micro benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant clipping. Created 6 years, 7 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/invalidation_benchmark.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/micro_benchmark_controller.cc
diff --git a/cc/debug/micro_benchmark_controller.cc b/cc/debug/micro_benchmark_controller.cc
index f6df0f6be19ac20aa997f0b9d2f7aece8086cec2..8b20bdf197f7ddfc9e157329bab5ec5cae178915 100644
--- a/cc/debug/micro_benchmark_controller.cc
+++ b/cc/debug/micro_benchmark_controller.cc
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/values.h"
+#include "cc/debug/invalidation_benchmark.h"
#include "cc/debug/picture_record_benchmark.h"
#include "cc/debug/rasterize_and_record_benchmark.h"
#include "cc/debug/unittest_only_benchmark.h"
@@ -26,7 +27,10 @@ scoped_ptr<MicroBenchmark> CreateBenchmark(
const std::string& name,
scoped_ptr<base::Value> value,
const MicroBenchmark::DoneCallback& callback) {
- if (name == "picture_record_benchmark") {
+ if (name == "invalidation_benchmark") {
+ return scoped_ptr<MicroBenchmark>(
+ new InvalidationBenchmark(value.Pass(), callback));
+ } else if (name == "picture_record_benchmark") {
return scoped_ptr<MicroBenchmark>(
new PictureRecordBenchmark(value.Pass(), callback));
} else if (name == "rasterize_and_record_benchmark") {
« no previous file with comments | « cc/debug/invalidation_benchmark.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698