OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/render_thread_manager.h" | 5 #include "android_webview/browser/render_thread_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "android_webview/browser/compositor_frame_producer.h" | 9 #include "android_webview/browser/compositor_frame_producer.h" |
10 #include "android_webview/browser/compositor_id.h" | 10 #include "android_webview/browser/compositor_id.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 base::AutoLock lock(lock_); | 81 base::AutoLock lock(lock_); |
82 DCHECK(state); | 82 DCHECK(state); |
83 pending_ui_ = state; | 83 pending_ui_ = state; |
84 pending_non_ui_ = NULL; | 84 pending_non_ui_ = NULL; |
85 } | 85 } |
86 | 86 |
87 } // namespace internal | 87 } // namespace internal |
88 | 88 |
89 namespace { | 89 namespace { |
90 | 90 |
91 base::LazyInstance<internal::RequestInvokeGLTracker> | 91 base::LazyInstance<internal::RequestInvokeGLTracker>::DestructorAtExit |
92 g_request_invoke_gl_tracker = LAZY_INSTANCE_INITIALIZER; | 92 g_request_invoke_gl_tracker = LAZY_INSTANCE_INITIALIZER; |
93 } | 93 } |
94 | 94 |
95 RenderThreadManager::RenderThreadManager( | 95 RenderThreadManager::RenderThreadManager( |
96 RenderThreadManagerClient* client, | 96 RenderThreadManagerClient* client, |
97 const scoped_refptr<base::SingleThreadTaskRunner>& ui_loop) | 97 const scoped_refptr<base::SingleThreadTaskRunner>& ui_loop) |
98 : ui_loop_(ui_loop), | 98 : ui_loop_(ui_loop), |
99 client_(client), | 99 client_(client), |
100 compositor_frame_producer_(nullptr), | 100 compositor_frame_producer_(nullptr), |
101 has_received_frame_(false), | 101 has_received_frame_(false), |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 : render_thread_manager_(render_thread_manager) { | 429 : render_thread_manager_(render_thread_manager) { |
430 DCHECK(!render_thread_manager_->IsInsideHardwareRelease()); | 430 DCHECK(!render_thread_manager_->IsInsideHardwareRelease()); |
431 render_thread_manager_->SetInsideHardwareRelease(true); | 431 render_thread_manager_->SetInsideHardwareRelease(true); |
432 } | 432 } |
433 | 433 |
434 RenderThreadManager::InsideHardwareReleaseReset::~InsideHardwareReleaseReset() { | 434 RenderThreadManager::InsideHardwareReleaseReset::~InsideHardwareReleaseReset() { |
435 render_thread_manager_->SetInsideHardwareRelease(false); | 435 render_thread_manager_->SetInsideHardwareRelease(false); |
436 } | 436 } |
437 | 437 |
438 } // namespace android_webview | 438 } // namespace android_webview |
OLD | NEW |