| 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 #if defined(OS_WIN) | 5 #if defined(OS_WIN) |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "content/common/gpu/gpu_channel.h" | 9 #include "content/common/gpu/gpu_channel.h" |
| 10 | 10 |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 filter_, messages_processed_)); | 938 filter_, messages_processed_)); |
| 939 } | 939 } |
| 940 } | 940 } |
| 941 | 941 |
| 942 void GpuChannel::CacheShader(const std::string& key, | 942 void GpuChannel::CacheShader(const std::string& key, |
| 943 const std::string& shader) { | 943 const std::string& shader) { |
| 944 gpu_channel_manager_->Send( | 944 gpu_channel_manager_->Send( |
| 945 new GpuHostMsg_CacheShader(client_id_, key, shader)); | 945 new GpuHostMsg_CacheShader(client_id_, key, shader)); |
| 946 } | 946 } |
| 947 | 947 |
| 948 void GpuChannel::OnDestroySurface(int route_id, int surface_id) { |
| 949 GpuCommandBufferStub* stub = LookupCommandBuffer(route_id); |
| 950 if (stub) |
| 951 stub->OnDestroySurface(surface_id); |
| 952 } |
| 953 |
| 948 } // namespace content | 954 } // namespace content |
| OLD | NEW |