| 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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 int32 surface_id, | 1569 int32 surface_id, |
| 1570 const GPUCreateCommandBufferConfig& init_params, | 1570 const GPUCreateCommandBufferConfig& init_params, |
| 1571 int32 route_id) { | 1571 int32 route_id) { |
| 1572 TRACE_EVENT1("gpu", | 1572 TRACE_EVENT1("gpu", |
| 1573 "RenderThreadImpl::CreateViewCommandBuffer", | 1573 "RenderThreadImpl::CreateViewCommandBuffer", |
| 1574 "surface_id", | 1574 "surface_id", |
| 1575 surface_id); | 1575 surface_id); |
| 1576 | 1576 |
| 1577 CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED; | 1577 CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED; |
| 1578 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( | 1578 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( |
| 1579 surface_id, | |
| 1580 init_params, | 1579 init_params, |
| 1581 route_id, | 1580 route_id, |
| 1582 &result); | 1581 &result); |
| 1583 | 1582 |
| 1584 // Allow calling this from the compositor thread. | 1583 // Allow calling this from the compositor thread. |
| 1585 thread_safe_sender()->Send(message); | 1584 thread_safe_sender()->Send(message); |
| 1586 | 1585 |
| 1587 return result; | 1586 return result; |
| 1588 } | 1587 } |
| 1589 | 1588 |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 } | 1977 } |
| 1979 | 1978 |
| 1980 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1979 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 1981 size_t erased = | 1980 size_t erased = |
| 1982 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1981 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 1983 routing_id_); | 1982 routing_id_); |
| 1984 DCHECK_EQ(1u, erased); | 1983 DCHECK_EQ(1u, erased); |
| 1985 } | 1984 } |
| 1986 | 1985 |
| 1987 } // namespace content | 1986 } // namespace content |
| OLD | NEW |