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

Unified Diff: cc/test/proxy_main_for_test.h

Issue 1417053005: cc: Split ThreadProxy into ProxyMain and ProxyImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing brianderson@'s comments, remove benchmark name change. Created 5 years 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/test/proxy_impl_for_test.cc ('k') | cc/test/proxy_main_for_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/proxy_main_for_test.h
diff --git a/cc/test/proxy_main_for_test.h b/cc/test/proxy_main_for_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..1669cc5a56b831e5399f41f57e19ef7929d090ac
--- /dev/null
+++ b/cc/test/proxy_main_for_test.h
@@ -0,0 +1,56 @@
+// Copyright 2015 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_TEST_PROXY_MAIN_FOR_TEST_H_
+#define CC_TEST_PROXY_MAIN_FOR_TEST_H_
+
+#include "base/macros.h"
+#include "cc/test/test_hooks.h"
+#include "cc/trees/proxy_main.h"
+
+namespace cc {
+
+// Creates a ProxyMain that notifies the supplied |test_hooks| of various
+// actions.
+class ProxyMainForTest : public ProxyMain {
+ public:
+ static scoped_ptr<ProxyMain> CreateThreaded(
+ TestHooks* test_hooks,
+ LayerTreeHost* host,
+ TaskRunnerProvider* task_runner_provider,
+ scoped_ptr<BeginFrameSource> external_begin_frame_source);
+
+ ~ProxyMainForTest() override;
+
+ ProxyMainForTest(TestHooks* test_hooks,
+ LayerTreeHost* host,
+ TaskRunnerProvider* task_runner_provider,
+ scoped_ptr<BeginFrameSource> external_begin_frame_source);
+
+ void SetNeedsUpdateLayers() override;
+ void DidCompleteSwapBuffers() override;
+ void SetRendererCapabilities(
+ const RendererCapabilities& capabilities) override;
+ void BeginMainFrameNotExpectedSoon() override;
+ void DidCommitAndDrawFrame() override;
+ void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events) override;
+ void DidLoseOutputSurface() override;
+ void RequestNewOutputSurface() override;
+ void DidInitializeOutputSurface(
+ bool success,
+ const RendererCapabilities& capabilities) override;
+ void DidCompletePageScaleAnimation() override;
+ void PostFrameTimingEventsOnMain(
+ scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
+ scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
+ override;
+ void BeginMainFrame(
+ scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override;
+
+ TestHooks* test_hooks_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_PROXY_MAIN_FOR_TEST_H_
« no previous file with comments | « cc/test/proxy_impl_for_test.cc ('k') | cc/test/proxy_main_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698