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 "android_webview/common/aw_content_client.h" | 5 #include "android_webview/common/aw_content_client.h" |
6 | 6 |
7 #include "android_webview/common/aw_version_info_values.h" | 7 #include "android_webview/common/aw_version_info_values.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 #include "content/public/common/user_agent.h" | 10 #include "content/public/common/user_agent.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 return message->type() == IPC_REPLY_ID; | 66 return message->type() == IPC_REPLY_ID; |
67 } | 67 } |
68 | 68 |
69 void AwContentClient::SetGpuInfo(const gpu::GPUInfo& gpu_info) { | 69 void AwContentClient::SetGpuInfo(const gpu::GPUInfo& gpu_info) { |
70 gpu_fingerprint_ = gpu_info.gl_version + '|' + gpu_info.gl_vendor + '|' + | 70 gpu_fingerprint_ = gpu_info.gl_version + '|' + gpu_info.gl_vendor + '|' + |
71 gpu_info.gl_renderer; | 71 gpu_info.gl_renderer; |
72 std::replace_if(gpu_fingerprint_.begin(), gpu_fingerprint_.end(), | 72 std::replace_if(gpu_fingerprint_.begin(), gpu_fingerprint_.end(), |
73 [](char c) { return !::isprint(c); }, '_'); | 73 [](char c) { return !::isprint(c); }, '_'); |
74 } | 74 } |
75 | 75 |
| 76 bool AwContentClient::UsingSynchronousCompositing() { |
| 77 return true; |
| 78 } |
| 79 |
76 } // namespace android_webview | 80 } // namespace android_webview |
OLD | NEW |