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 <utility> | 10 #include <utility> |
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 input_params, output_params)); | 1545 input_params, output_params)); |
1546 } | 1546 } |
1547 | 1547 |
1548 return audio_hardware_config_.get(); | 1548 return audio_hardware_config_.get(); |
1549 } | 1549 } |
1550 | 1550 |
1551 base::WaitableEvent* RenderThreadImpl::GetShutdownEvent() { | 1551 base::WaitableEvent* RenderThreadImpl::GetShutdownEvent() { |
1552 return ChildProcess::current()->GetShutDownEvent(); | 1552 return ChildProcess::current()->GetShutDownEvent(); |
1553 } | 1553 } |
1554 | 1554 |
1555 #if defined(OS_WIN) | |
1556 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, | |
1557 const base::string16& str) { | |
1558 Send(new RenderProcessHostMsg_PreCacheFontCharacters(log_font, str)); | |
1559 } | |
1560 | |
1561 #endif // OS_WIN | |
1562 | |
1563 bool RenderThreadImpl::IsGpuRasterizationForced() { | 1555 bool RenderThreadImpl::IsGpuRasterizationForced() { |
1564 return is_gpu_rasterization_forced_; | 1556 return is_gpu_rasterization_forced_; |
1565 } | 1557 } |
1566 | 1558 |
1567 bool RenderThreadImpl::IsGpuRasterizationEnabled() { | 1559 bool RenderThreadImpl::IsGpuRasterizationEnabled() { |
1568 return is_gpu_rasterization_enabled_; | 1560 return is_gpu_rasterization_enabled_; |
1569 } | 1561 } |
1570 | 1562 |
1571 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() { | 1563 bool RenderThreadImpl::IsAsyncWorkerContextEnabled() { |
1572 return is_async_worker_context_enabled_; | 1564 return is_async_worker_context_enabled_; |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2228 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) | 2220 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) |
2229 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; | 2221 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; |
2230 | 2222 |
2231 blink::mainThreadIsolate()->MemoryPressureNotification( | 2223 blink::mainThreadIsolate()->MemoryPressureNotification( |
2232 v8_memory_pressure_level); | 2224 v8_memory_pressure_level); |
2233 blink::MemoryPressureNotificationToWorkerThreadIsolates( | 2225 blink::MemoryPressureNotificationToWorkerThreadIsolates( |
2234 v8_memory_pressure_level); | 2226 v8_memory_pressure_level); |
2235 } | 2227 } |
2236 | 2228 |
2237 } // namespace content | 2229 } // namespace content |
OLD | NEW |