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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 383303004: Added more detailed result codes for CreateViewCommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleted commented-out code from test. Created 6 years, 5 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
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.cc
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index 7da35125df858eeeab021ddf112e52eec627da17..9550c5b2ca1b3ef4b1a67d29858c0f361e4866c4 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -178,15 +178,15 @@ void GpuChannelManager::OnCreateViewCommandBuffer(
const GPUCreateCommandBufferConfig& init_params,
int32 route_id) {
DCHECK(surface_id);
- bool succeeded = false;
+ CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED;
GpuChannelMap::const_iterator iter = gpu_channels_.find(client_id);
if (iter != gpu_channels_.end()) {
- succeeded = iter->second->CreateViewCommandBuffer(
+ result = iter->second->CreateViewCommandBuffer(
window, surface_id, init_params, route_id);
}
- Send(new GpuHostMsg_CommandBufferCreated(succeeded));
+ Send(new GpuHostMsg_CommandBufferCreated(result));
}
void GpuChannelManager::CreateImage(
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698