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 |
11 #include <queue> | 11 #include <queue> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/debug/trace_event.h" | 16 #include "base/debug/trace_event.h" |
17 #include "base/message_loop_proxy.h" | 17 #include "base/message_loop/message_loop_proxy.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
21 #include "base/timer.h" | 21 #include "base/timer.h" |
22 #include "content/common/gpu/gpu_channel_manager.h" | 22 #include "content/common/gpu/gpu_channel_manager.h" |
23 #include "content/common/gpu/gpu_messages.h" | 23 #include "content/common/gpu/gpu_messages.h" |
24 #include "content/common/gpu/sync_point_manager.h" | 24 #include "content/common/gpu/sync_point_manager.h" |
25 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
26 #include "crypto/hmac.h" | 26 #include "crypto/hmac.h" |
27 #include "gpu/command_buffer/common/mailbox.h" | 27 #include "gpu/command_buffer/common/mailbox.h" |
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 } | 950 } |
951 } | 951 } |
952 | 952 |
953 void GpuChannel::CacheShader(const std::string& key, | 953 void GpuChannel::CacheShader(const std::string& key, |
954 const std::string& shader) { | 954 const std::string& shader) { |
955 gpu_channel_manager_->Send( | 955 gpu_channel_manager_->Send( |
956 new GpuHostMsg_CacheShader(client_id_, key, shader)); | 956 new GpuHostMsg_CacheShader(client_id_, key, shader)); |
957 } | 957 } |
958 | 958 |
959 } // namespace content | 959 } // namespace content |
OLD | NEW |