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

Side by Side Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: danakj nits Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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 "chromecast/browser/cast_browser_main_parts.h" 5 #include "chromecast/browser/cast_browser_main_parts.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 #if BUILDFLAG(IS_CAST_AUDIO_ONLY) 229 #if BUILDFLAG(IS_CAST_AUDIO_ONLY)
230 { switches::kDisableGpu, "" }, 230 { switches::kDisableGpu, "" },
231 #endif 231 #endif
232 #if defined(OS_LINUX) 232 #if defined(OS_LINUX)
233 #if defined(ARCH_CPU_X86_FAMILY) 233 #if defined(ARCH_CPU_X86_FAMILY)
234 // This is needed for now to enable the x11 Ozone platform to work with 234 // This is needed for now to enable the x11 Ozone platform to work with
235 // current Linux/NVidia OpenGL drivers. 235 // current Linux/NVidia OpenGL drivers.
236 { switches::kIgnoreGpuBlacklist, ""}, 236 { switches::kIgnoreGpuBlacklist, ""},
237 #elif defined(ARCH_CPU_ARM_FAMILY) 237 #elif defined(ARCH_CPU_ARM_FAMILY)
238 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) 238 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY)
239 { switches::kEnableHardwareOverlays, "" }, 239 {switches::kEnableHardwareOverlays, "cast"},
240 #endif 240 #endif
241 #endif 241 #endif
242 #endif // defined(OS_LINUX) 242 #endif // defined(OS_LINUX)
243 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race 243 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race
244 // against GPU process creation (which is otherwise triggered from 244 // against GPU process creation (which is otherwise triggered from
245 // BrowserThreadsStarted). The GPU process will be created as soon as a 245 // BrowserThreadsStarted). The GPU process will be created as soon as a
246 // renderer needs it, which always happens after main loop starts. 246 // renderer needs it, which always happens after main loop starts.
247 { switches::kDisableGpuEarlyInit, "" }, 247 { switches::kDisableGpuEarlyInit, "" },
248 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when 248 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when
249 // support is added (crbug.com/659395) 249 // support is added (crbug.com/659395)
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 556
557 void CastBrowserMainParts::PostDestroyThreads() { 557 void CastBrowserMainParts::PostDestroyThreads() {
558 #if !defined(OS_ANDROID) 558 #if !defined(OS_ANDROID)
559 media_resource_tracker_->FinalizeAndDestroy(); 559 media_resource_tracker_->FinalizeAndDestroy();
560 media_resource_tracker_ = nullptr; 560 media_resource_tracker_ = nullptr;
561 #endif 561 #endif
562 } 562 }
563 563
564 } // namespace shell 564 } // namespace shell
565 } // namespace chromecast 565 } // namespace chromecast
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | components/display_compositor/compositor_overlay_candidate_validator_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698