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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2089183003: mus: Introduce API for embedder to dispatch event to the embeded client. Base URL: https://chromium.googlesource.com/chromium/src.git@mus-parent-window-receives-child-event
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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/gpu/gpu_data_manager_impl_private.h" 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 UpdateGpuInfoHelper(); 970 UpdateGpuInfoHelper();
971 return true; 971 return true;
972 } 972 }
973 973
974 bool GpuDataManagerImplPrivate::CanUseGpuBrowserCompositor() const { 974 bool GpuDataManagerImplPrivate::CanUseGpuBrowserCompositor() const {
975 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 975 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
976 switches::kDisableGpuCompositing)) 976 switches::kDisableGpuCompositing))
977 return false; 977 return false;
978 if (ShouldUseSwiftShader()) 978 if (ShouldUseSwiftShader())
979 return false; 979 return false;
980 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING)) 980 // if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING))
981 return false; 981 // return false;
982 return true; 982 return true;
983 } 983 }
984 984
985 985
986 bool GpuDataManagerImplPrivate::ShouldDisableAcceleratedVideoDecode( 986 bool GpuDataManagerImplPrivate::ShouldDisableAcceleratedVideoDecode(
987 const base::CommandLine* command_line) const { 987 const base::CommandLine* command_line) const {
988 // Make sure that we initialize the experiment first to make sure that 988 // Make sure that we initialize the experiment first to make sure that
989 // statistics are bucket correctly in all cases. 989 // statistics are bucket correctly in all cases.
990 // This experiment is temporary and will be removed once enough data 990 // This experiment is temporary and will be removed once enough data
991 // to resolve crbug/442039 has been collected. 991 // to resolve crbug/442039 has been collected.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; 1284 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure;
1285 #if defined(OS_WIN) 1285 #if defined(OS_WIN)
1286 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; 1286 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure;
1287 #endif 1287 #endif
1288 complete_gpu_info_already_requested_ = true; 1288 complete_gpu_info_already_requested_ = true;
1289 // Some observers might be waiting. 1289 // Some observers might be waiting.
1290 NotifyGpuInfoUpdate(); 1290 NotifyGpuInfoUpdate();
1291 } 1291 }
1292 1292
1293 } // namespace content 1293 } // namespace content
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree.cc ('k') | content/browser/renderer_host/render_widget_host_view_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698