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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8917028: Add BrowserThread::PostTaskOnIOThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | « content/browser/browser_thread_impl.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 36abcd73cec3322f5bf014bfac606664c509b563..77a6f0b06d245ea7d90f8bd836ca90525f00dbbb 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -190,12 +190,6 @@ void SendToGpuProcessHost(int gpu_host_id, scoped_ptr<IPC::Message> message) {
gpu_process_host->Send(message.release());
}
-void PostTaskOnIOThread(const tracked_objects::Location& from_here,
- base::Closure task) {
- BrowserThread::PostTask(BrowserThread::IO, from_here, task);
- gpu_process_host->Send(message.release());
-}
-
bool DecodeZoomGesture(HWND hwnd, const GESTUREINFO& gi,
content::PageZoom* zoom,
POINT* zoom_center) {
@@ -554,8 +548,7 @@ HWND RenderWidgetHostViewWin::ReparentWindow(HWND window) {
// How many times we try to find a PluginProcessHost whose process matches
// the HWND.
static const int kMaxTries = 5;
- BrowserThread::PostTask(
- BrowserThread::IO,
+ BrowserThread::PostTaskOnIOThread(
FROM_HERE,
base::Bind(&NotifyPluginProcessHostHelper, window, parent, kMaxTries));
return parent;
@@ -2059,7 +2052,7 @@ void RenderWidgetHostViewWin::AcceleratedSurfaceBuffersSwapped(
accelerated_surface_->AsyncPresentAndAcknowledge(
params.size,
params.surface_id,
- base::Bind(PostTaskOnIOThread,
+ base::Bind(BrowserThread::PostTaskOnIOThread,
FROM_HERE,
acknowledge_task));
} else {
« no previous file with comments | « content/browser/browser_thread_impl.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698