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

Unified Diff: cc/test/proxy_impl_for_test.h

Issue 1506023008: [NOT LANDED] Revert of cc: Split ThreadProxy into ProxyMain and ProxyImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/layer_tree_test.cc ('k') | cc/test/proxy_impl_for_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/proxy_impl_for_test.h
diff --git a/cc/test/proxy_impl_for_test.h b/cc/test/proxy_impl_for_test.h
deleted file mode 100644
index b81ece58343ca20988ff3e071009c2f2926c204c..0000000000000000000000000000000000000000
--- a/cc/test/proxy_impl_for_test.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// 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_IMPL_FOR_TEST_H_
-#define CC_TEST_PROXY_IMPL_FOR_TEST_H_
-
-#include "base/macros.h"
-#include "cc/test/test_hooks.h"
-#include "cc/trees/proxy_impl.h"
-
-namespace cc {
-// Creates a ProxyImpl that notifies the supplied |test_hooks| of various
-// actions.
-class ProxyImplForTest : public ProxyImpl {
- public:
- static scoped_ptr<ProxyImpl> Create(
- TestHooks* test_hooks,
- ChannelImpl* channel_impl,
- LayerTreeHost* layer_tree_host,
- TaskRunnerProvider* task_runner_provider,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
-
- using ProxyImpl::PostAnimationEventsToMainThreadOnImplThread;
- using ProxyImpl::DidLoseOutputSurfaceOnImplThread;
- using ProxyImpl::DidCompletePageScaleAnimationOnImplThread;
- using ProxyImpl::SendBeginMainFrameNotExpectedSoon;
-
- bool HasCommitCompletionEvent() const;
- bool GetNextCommitWaitsForActivation() const;
-
- ProxyImplForTest(TestHooks* test_hooks,
- ChannelImpl* channel_impl,
- LayerTreeHost* layer_tree_host,
- TaskRunnerProvider* task_runner_provider,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
-
- void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
- DrawResult ScheduledActionDrawAndSwapIfPossible() override;
- void ScheduledActionCommit() override;
- void ScheduledActionBeginOutputSurfaceCreation() override;
- void ScheduledActionPrepareTiles() override;
- void ScheduledActionInvalidateOutputSurface() override;
- void SendBeginMainFrameNotExpectedSoon() override;
- void DidActivateSyncTree() override;
- void SetThrottleFrameProductionOnImpl(bool throttle) override;
- void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override;
- void MainThreadHasStoppedFlingingOnImpl() override;
- void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override;
- void UpdateTopControlsStateOnImpl(TopControlsState constraints,
- TopControlsState current,
- bool animate) override;
- void SetDeferCommitsOnImpl(bool defer_commits) const override;
- void BeginMainFrameAbortedOnImpl(
- CommitEarlyOutReason reason,
- base::TimeTicks main_thread_start_time) override;
- void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override;
- void SetNeedsCommitOnImpl() override;
- void FinishAllRenderingOnImpl(CompletionEvent* completion) override;
- void SetVisibleOnImpl(bool visible) override;
- void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override;
- void FinishGLOnImpl(CompletionEvent* completion) override;
- void StartCommitOnImpl(CompletionEvent* completion,
- LayerTreeHost* layer_tree_host,
- base::TimeTicks main_thread_start_time,
- bool hold_commit_for_activation) override;
-
- TestHooks* test_hooks_;
-};
-
-} // namespace cc
-
-#endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/proxy_impl_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698