OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gpu/transport_texture_service.h" | 5 #include "content/renderer/gpu/transport_texture_service.h" |
6 | 6 |
7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
8 #include "content/common/child_process.h" | 8 #include "content/common/child_process.h" |
9 #include "content/common/gpu/gpu_messages.h" | 9 #include "content/common/gpu/gpu_messages.h" |
10 #include "content/renderer/gpu/transport_texture_host.h" | 10 #include "content/renderer/gpu/transport_texture_host.h" |
11 | 11 |
12 TransportTextureService::TransportTextureService() | 12 TransportTextureService::TransportTextureService() |
13 : channel_(NULL), | 13 : channel_(NULL), |
14 next_host_id_(1) { | 14 next_host_id_(1) { |
15 } | 15 } |
16 | 16 |
17 TransportTextureService::~TransportTextureService() { | 17 TransportTextureService::~TransportTextureService() { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 void TransportTextureService::SendInternal(IPC::Message* msg) { | 120 void TransportTextureService::SendInternal(IPC::Message* msg) { |
121 DCHECK_EQ(ChildProcess::current()->io_message_loop(), | 121 DCHECK_EQ(ChildProcess::current()->io_message_loop(), |
122 MessageLoop::current()); | 122 MessageLoop::current()); |
123 | 123 |
124 if (channel_) | 124 if (channel_) |
125 channel_->Send(msg); | 125 channel_->Send(msg); |
126 else | 126 else |
127 pending_messages_.push_back(msg); | 127 pending_messages_.push_back(msg); |
128 } | 128 } |
OLD | NEW |