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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 397863002: Fixed MSAN uninitialized-value warning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 1217
1218 CreateCommandBufferResult RenderThreadImpl::CreateViewCommandBuffer( 1218 CreateCommandBufferResult RenderThreadImpl::CreateViewCommandBuffer(
1219 int32 surface_id, 1219 int32 surface_id,
1220 const GPUCreateCommandBufferConfig& init_params, 1220 const GPUCreateCommandBufferConfig& init_params,
1221 int32 route_id) { 1221 int32 route_id) {
1222 TRACE_EVENT1("gpu", 1222 TRACE_EVENT1("gpu",
1223 "RenderThreadImpl::CreateViewCommandBuffer", 1223 "RenderThreadImpl::CreateViewCommandBuffer",
1224 "surface_id", 1224 "surface_id",
1225 surface_id); 1225 surface_id);
1226 1226
1227 CreateCommandBufferResult result; 1227 CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED;
1228 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( 1228 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer(
1229 surface_id, 1229 surface_id,
1230 init_params, 1230 init_params,
1231 route_id, 1231 route_id,
1232 &result); 1232 &result);
1233 1233
1234 // Allow calling this from the compositor thread. 1234 // Allow calling this from the compositor thread.
1235 thread_safe_sender()->Send(message); 1235 thread_safe_sender()->Send(message);
1236 1236
1237 return result; 1237 return result;
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 hidden_widget_count_--; 1608 hidden_widget_count_--;
1609 1609
1610 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1610 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1611 return; 1611 return;
1612 } 1612 }
1613 1613
1614 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1614 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1615 } 1615 }
1616 1616
1617 } // namespace content 1617 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698