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

Unified Diff: cc/layers/video_frame_provider_client_impl_unittest.cc

Issue 1411663002: cc: Split Proxy to eliminate unnecessary dependencies on the impl side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update perf tests. Created 5 years, 2 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
« no previous file with comments | « cc/layers/ui_resource_layer_impl_unittest.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_frame_provider_client_impl_unittest.cc
diff --git a/cc/layers/video_frame_provider_client_impl_unittest.cc b/cc/layers/video_frame_provider_client_impl_unittest.cc
index 4cbd493e0d54aa316e6c478c3ef8312489f6630e..3cc4709d4aae6d6b7eccfac4cef0a512fe42f682 100644
--- a/cc/layers/video_frame_provider_client_impl_unittest.cc
+++ b/cc/layers/video_frame_provider_client_impl_unittest.cc
@@ -18,10 +18,11 @@ namespace cc {
// NOTE: We cannot use DebugScopedSetImplThreadAndMainThreadBlocked in these
// tests because it gets destroyed before the VideoLayerImpl is destroyed. This
// causes a DCHECK in VideoLayerImpl's destructor to fail.
-static void DebugSetImplThreadAndMainThreadBlocked(Proxy* proxy) {
+static void DebugSetImplThreadAndMainThreadBlocked(
+ TaskRunnerProvider* task_runner_provider) {
#if DCHECK_IS_ON()
- proxy->SetCurrentThreadIsImplThread(true);
- proxy->SetMainThreadBlocked(true);
+ task_runner_provider->SetCurrentThreadIsImplThread(true);
+ task_runner_provider->SetMainThreadBlocked(true);
#endif
}
@@ -36,7 +37,7 @@ class VideoFrameProviderClientImplTest : public testing::Test,
gfx::Rect(10, 10),
gfx::Size(10, 10),
base::TimeDelta())) {
- DebugSetImplThreadAndMainThreadBlocked(impl_.proxy());
+ DebugSetImplThreadAndMainThreadBlocked(impl_.task_runner_provider());
}
~VideoFrameProviderClientImplTest() {
« no previous file with comments | « cc/layers/ui_resource_layer_impl_unittest.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698