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

Unified Diff: chrome/renderer/gpu_channel_host.cc

Issue 5607001: Removed kChromiumRendererIdProperty window property.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/gpu/gpu_channel.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/gpu_channel_host.cc
===================================================================
--- chrome/renderer/gpu_channel_host.cc (revision 67940)
+++ chrome/renderer/gpu_channel_host.cc (working copy)
@@ -97,15 +97,16 @@
GPUCreateCommandBufferConfig init_params(allowed_extensions, attribs);
int32 route_id;
- if (!Send(new GpuChannelMsg_CreateViewCommandBuffer(
- view,
- render_view_id,
- init_params,
- &route_id)) &&
- route_id != MSG_ROUTING_NONE) {
+ if (!Send(new GpuChannelMsg_CreateViewCommandBuffer(view,
+ render_view_id,
+ init_params,
+ &route_id))) {
return NULL;
}
+ if (route_id == MSG_ROUTING_NONE)
+ return NULL;
+
CommandBufferProxy* command_buffer = new CommandBufferProxy(this, route_id);
router_.AddRoute(route_id, command_buffer);
proxies_[route_id] = command_buffer;
@@ -133,11 +134,13 @@
size,
init_params,
parent_texture_id,
- &route_id)) &&
- route_id != MSG_ROUTING_NONE) {
+ &route_id))) {
return NULL;
}
+ if (route_id == MSG_ROUTING_NONE)
+ return NULL;
+
CommandBufferProxy* command_buffer = new CommandBufferProxy(this, route_id);
router_.AddRoute(route_id, command_buffer);
proxies_[route_id] = command_buffer;
« no previous file with comments | « chrome/gpu/gpu_channel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698