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

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

Issue 2261893003: Remove GpuInfo::can_lose_context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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) 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/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 bool accelerated_vpx_disabled = 64 bool accelerated_vpx_disabled =
65 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode); 65 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode);
66 #if defined(OS_WIN) 66 #if defined(OS_WIN)
67 accelerated_vpx_disabled |= !gpu_preferences.enable_accelerated_vpx_decode; 67 accelerated_vpx_disabled |= !gpu_preferences.enable_accelerated_vpx_decode;
68 #endif 68 #endif
69 69
70 const GpuFeatureInfo kGpuFeatureInfo[] = { 70 const GpuFeatureInfo kGpuFeatureInfo[] = {
71 {"2d_canvas", 71 {"2d_canvas",
72 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS), 72 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS),
73 command_line.HasSwitch(switches::kDisableAccelerated2dCanvas) || 73 command_line.HasSwitch(switches::kDisableAccelerated2dCanvas),
74 !GpuDataManagerImpl::GetInstance()
75 ->GetGPUInfo()
76 .SupportsAccelerated2dCanvas(),
77 "Accelerated 2D canvas is unavailable: either disabled via blacklist or" 74 "Accelerated 2D canvas is unavailable: either disabled via blacklist or"
78 " the command line.", 75 " the command line.",
79 true}, 76 true},
80 {kGpuCompositingFeatureName, 77 {kGpuCompositingFeatureName,
81 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING), 78 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING),
82 command_line.HasSwitch(switches::kDisableGpuCompositing), 79 command_line.HasSwitch(switches::kDisableGpuCompositing),
83 "Gpu compositing has been disabled, either via blacklist, about:flags" 80 "Gpu compositing has been disabled, either via blacklist, about:flags"
84 " or the command line. The browser will fall back to software compositing" 81 " or the command line. The browser will fall back to software compositing"
85 " and hardware acceleration will be unavailable.", 82 " and hardware acceleration will be unavailable.",
86 true}, 83 true},
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 406 }
410 } 407 }
411 return problem_list; 408 return problem_list;
412 } 409 }
413 410
414 std::vector<std::string> GetDriverBugWorkarounds() { 411 std::vector<std::string> GetDriverBugWorkarounds() {
415 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 412 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
416 } 413 }
417 414
418 } // namespace content 415 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/gpu/gpu_driver_info_manager_android.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698