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

Side by Side Diff: content/test/layouttest_support.cc

Issue 15993018: Reland: Use a shared thread for media operations (round 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/webkit_test_runner.cc ('k') | media/base/pipeline.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/layouttest_support.h" 5 #include "content/public/test/layouttest_support.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "content/common/gpu/image_transport_surface.h" 9 #include "content/common/gpu/image_transport_surface.h"
10 #include "content/renderer/render_thread_impl.h" 10 #include "content/renderer/render_thread_impl.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const WebSize& max_size) { 104 const WebSize& max_size) {
105 static_cast<RenderViewImpl*>(render_view) 105 static_cast<RenderViewImpl*>(render_view)
106 ->EnableAutoResizeForTesting(min_size, max_size); 106 ->EnableAutoResizeForTesting(min_size, max_size);
107 } 107 }
108 108
109 void DisableAutoResizeMode(RenderView* render_view, const WebSize& new_size) { 109 void DisableAutoResizeMode(RenderView* render_view, const WebSize& new_size) {
110 static_cast<RenderViewImpl*>(render_view) 110 static_cast<RenderViewImpl*>(render_view)
111 ->DisableAutoResizeForTesting(new_size); 111 ->DisableAutoResizeForTesting(new_size);
112 } 112 }
113 113
114 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy() {
115 return RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy();
116 }
117
114 } // namespace content 118 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/webkit_test_runner.cc ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698