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

Unified Diff: content/renderer/gpu/gpu_surface_proxy.cc

Issue 7634019: Allow cmdbuffer creation from compositor thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 4 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
Index: content/renderer/gpu/gpu_surface_proxy.cc
diff --git a/content/renderer/gpu/gpu_surface_proxy.cc b/content/renderer/gpu/gpu_surface_proxy.cc
index d023b0e366237fdc80ed63a42238fd5e4aae703e..97255f168b045485fb2c2a77a3bc587a6cbf1976 100644
--- a/content/renderer/gpu/gpu_surface_proxy.cc
+++ b/content/renderer/gpu/gpu_surface_proxy.cc
@@ -16,6 +16,9 @@ GpuSurfaceProxy::~GpuSurfaceProxy() {
}
bool GpuSurfaceProxy::OnMessageReceived(const IPC::Message& message) {
+ if (IsOrphaned())
+ return false;
+
bool handled = true;
//IPC_BEGIN_MESSAGE_MAP(GpuSurfaceProxy, message)
// IPC_MESSAGE_UNHANDLED(handled = false)

Powered by Google App Engine
This is Rietveld 408576698