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

Unified Diff: cc/resources/tile_manager_perftest.cc

Issue 429743003: Rename Animate as Begin(Main)Frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a typo that made tests fail. Created 6 years, 4 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
Index: cc/resources/tile_manager_perftest.cc
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc
index 211ff017906fd24d0b3eb7e1a41f6ecb732dd9b6..ddeab88697aadcb3dc4ba1b90ba849954aa918d9 100644
--- a/cc/resources/tile_manager_perftest.cc
+++ b/cc/resources/tile_manager_perftest.cc
@@ -22,6 +22,8 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_test.h"
+#include "ui/gfx/frame_time.h"
+
namespace cc {
namespace {
@@ -390,7 +392,11 @@ class TileManagerPerfTest : public testing::Test {
CreateLayers(layer_count, approximate_tile_count_per_layer);
timer_.Reset();
do {
- host_impl_.UpdateCurrentFrameTime();
+ BeginFrameArgs args =
+ BeginFrameArgs::Create(gfx::FrameTime::Now(),
+ base::TimeTicks(),
+ BeginFrameArgs::DefaultInterval());
mithro-old 2014/08/11 07:33:33 src/cc/test/begin_frame_args_test.h has helpers fo
Sami 2014/08/11 17:51:26 Handy!
+ host_impl_.UpdateCurrentFrameTime(args);
for (unsigned i = 0; i < layers.size(); ++i)
layers[i]->UpdateTiles(NULL);

Powered by Google App Engine
This is Rietveld 408576698