| OLD | NEW |
| 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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 int32 surface_id, | 1570 int32 surface_id, |
| 1571 const GPUCreateCommandBufferConfig& init_params, | 1571 const GPUCreateCommandBufferConfig& init_params, |
| 1572 int32 route_id) { | 1572 int32 route_id) { |
| 1573 TRACE_EVENT1("gpu", | 1573 TRACE_EVENT1("gpu", |
| 1574 "RenderThreadImpl::CreateViewCommandBuffer", | 1574 "RenderThreadImpl::CreateViewCommandBuffer", |
| 1575 "surface_id", | 1575 "surface_id", |
| 1576 surface_id); | 1576 surface_id); |
| 1577 | 1577 |
| 1578 CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED; | 1578 CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED; |
| 1579 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( | 1579 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( |
| 1580 surface_id, | |
| 1581 init_params, | 1580 init_params, |
| 1582 route_id, | 1581 route_id, |
| 1583 &result); | 1582 &result); |
| 1584 | 1583 |
| 1585 // Allow calling this from the compositor thread. | 1584 // Allow calling this from the compositor thread. |
| 1586 thread_safe_sender()->Send(message); | 1585 thread_safe_sender()->Send(message); |
| 1587 | 1586 |
| 1588 return result; | 1587 return result; |
| 1589 } | 1588 } |
| 1590 | 1589 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 } | 2003 } |
| 2005 | 2004 |
| 2006 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 2005 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 2007 size_t erased = | 2006 size_t erased = |
| 2008 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 2007 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 2009 routing_id_); | 2008 routing_id_); |
| 2010 DCHECK_EQ(1u, erased); | 2009 DCHECK_EQ(1u, erased); |
| 2011 } | 2010 } |
| 2012 | 2011 |
| 2013 } // namespace content | 2012 } // namespace content |
| OLD | NEW |