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

Unified Diff: cc/test/layer_tree_test.h

Issue 845393002: cc: Create ProxyBeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 11 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/test/layer_tree_test.h
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index 4e38ae6bb6b094b8d7a3793f2282a57bb139aba9..d4e40b2d9e5b05b6e67afc580f77a48df561c0f5 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
#include "cc/animation/animation_delegate.h"
+#include "cc/scheduler/begin_frame_source.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -200,6 +201,9 @@ class LayerTreeTest : public testing::Test, public TestHooks {
bool delegating_renderer() const { return delegating_renderer_; }
FakeOutputSurface* output_surface() { return output_surface_; }
int LastCommittedSourceFrameNumber(LayerTreeHostImpl* impl) const;
+ ProxyBeginFrameSource* proxy_begin_frame_source() const {
+ return proxy_begin_frame_source_.get();
+ }
void DestroyLayerTreeHost();
@@ -218,6 +222,7 @@ class LayerTreeTest : public testing::Test, public TestHooks {
scoped_ptr<LayerTreeHost> layer_tree_host_;
FakeOutputSurface* output_surface_;
FakeExternalBeginFrameSource* external_begin_frame_source_;
+ scoped_ptr<ProxyBeginFrameSource> proxy_begin_frame_source_;
bool beginning_;
bool end_when_begin_returns_;

Powered by Google App Engine
This is Rietveld 408576698