Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1565)

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2109643002: Fix DCHECKs caused by in-process gpu thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 2f05bb5f907bf75231814ff39e672059ecfef92f..46fd803a140c85abacc8f3547617878943c4d8ca 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -504,7 +504,8 @@ void GpuChildThread::OnDisableWatchdog() {
void GpuChildThread::OnGpuSwitched() {
DVLOG(1) << "GPU: GPU has switched";
// Notify observers in the GPU process.
- ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
+ if (!in_browser_process_)
+ ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
}
void GpuChildThread::OnEstablishChannel(const EstablishChannelParams& params) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698