| Index: cc/test/layer_tree_test.cc
|
| diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
|
| index 36621d01dec5f59a1af8d0a4faa3ce853915d02a..373f92bdfe95cdec3a43302849a999db4690ac65 100644
|
| --- a/cc/test/layer_tree_test.cc
|
| +++ b/cc/test/layer_tree_test.cc
|
| @@ -23,6 +23,7 @@
|
| #include "cc/trees/layer_tree_host_client.h"
|
| #include "cc/trees/layer_tree_host_impl.h"
|
| #include "cc/trees/layer_tree_host_single_thread_client.h"
|
| +#include "cc/trees/layer_tree_impl.h"
|
| #include "cc/trees/single_thread_proxy.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "ui/gfx/frame_time.h"
|
| @@ -700,4 +701,14 @@ TestWebGraphicsContext3D* LayerTreeTest::TestContext() {
|
| output_surface_->context_provider().get())->TestContext3d();
|
| }
|
|
|
| +int LayerTreeTest::LastCommittedSourceFrameNumber(LayerTreeHostImpl* impl)
|
| + const {
|
| + if (impl->pending_tree())
|
| + return impl->pending_tree()->source_frame_number();
|
| + if (impl->active_tree())
|
| + return impl->active_tree()->source_frame_number();
|
| + // Source frames start at 0, so this is invalid.
|
| + return -1;
|
| +}
|
| +
|
| } // namespace cc
|
|
|