| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/renderer_host/render_message_filter.h" | 5 #include "content/browser/renderer_host/render_message_filter.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/debug/alias.h" |
| 12 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 13 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 14 #include "base/sys_string_conversions.h" | 15 #include "base/sys_string_conversions.h" |
| 15 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 16 #include "base/threading/worker_pool.h" | 17 #include "base/threading/worker_pool.h" |
| 17 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 18 #include "content/browser/child_process_security_policy.h" | 19 #include "content/browser/child_process_security_policy.h" |
| 19 #include "content/browser/download/download_stats.h" | 20 #include "content/browser/download/download_stats.h" |
| 20 #include "content/browser/download/download_types.h" | 21 #include "content/browser/download/download_types.h" |
| 21 #include "content/browser/plugin_process_host.h" | 22 #include "content/browser/plugin_process_host.h" |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 // for a resize or if no backing store) the RenderWidgetHost is blocking the | 907 // for a resize or if no backing store) the RenderWidgetHost is blocking the |
| 907 // UI thread for some time, waiting for an UpdateRect from the renderer. If we | 908 // UI thread for some time, waiting for an UpdateRect from the renderer. If we |
| 908 // are going to switch to accelerated compositing, the GPU process may need | 909 // are going to switch to accelerated compositing, the GPU process may need |
| 909 // round-trips to the UI thread before finishing the frame, causing deadlocks | 910 // round-trips to the UI thread before finishing the frame, causing deadlocks |
| 910 // if we delay the UpdateRect until we receive the OnSwapBuffersComplete. So | 911 // if we delay the UpdateRect until we receive the OnSwapBuffersComplete. So |
| 911 // the renderer sent us this message, so that we can unblock the UI thread. | 912 // the renderer sent us this message, so that we can unblock the UI thread. |
| 912 // We will simply re-use the UpdateRect unblock mechanism, just with a | 913 // We will simply re-use the UpdateRect unblock mechanism, just with a |
| 913 // different message. | 914 // different message. |
| 914 render_widget_helper_->DidReceiveUpdateMsg(msg); | 915 render_widget_helper_->DidReceiveUpdateMsg(msg); |
| 915 } | 916 } |
| OLD | NEW |