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

Side by Side Diff: gpu/config/gpu_info_collector_ozone.cc

Issue 194303002: Blacklist GLX indirect rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 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 | Annotate | Revision Log
« no previous file with comments | « gpu/config/gpu_info_collector_mac.mm ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "gpu/config/gpu_info_collector.h" 5 #include "gpu/config/gpu_info_collector.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
11 bool CollectContextGraphicsInfo(GPUInfo* gpu_info) { 11 CollectInfoResult CollectContextGraphicsInfo(GPUInfo* gpu_info) {
12 return CollectBasicGraphicsInfo(gpu_info); 12 return CollectBasicGraphicsInfo(gpu_info);
13 } 13 }
14 14
15 GpuIDResult CollectGpuID(uint32* vendor_id, uint32* device_id) { 15 GpuIDResult CollectGpuID(uint32* vendor_id, uint32* device_id) {
16 DCHECK(vendor_id && device_id); 16 DCHECK(vendor_id && device_id);
17 *vendor_id = 0; 17 *vendor_id = 0;
18 *device_id = 0; 18 *device_id = 0;
19 return kGpuIDNotSupported; 19 return kGpuIDNotSupported;
20 } 20 }
21 21
22 bool CollectBasicGraphicsInfo(GPUInfo* gpu_info) { 22 CollectInfoResult CollectBasicGraphicsInfo(GPUInfo* gpu_info) {
23 gpu_info->can_lose_context = false; 23 gpu_info->can_lose_context = false;
24 return true; 24 return kCollectInfoSuccess;
25 } 25 }
26 26
27 bool CollectDriverInfoGL(GPUInfo* gpu_info) { 27 CollectInfoResult CollectDriverInfoGL(GPUInfo* gpu_info) {
28 NOTIMPLEMENTED(); 28 NOTIMPLEMENTED();
29 return false; 29 return kCollectInfoNonFatalFailure;
30 } 30 }
31 31
32 void MergeGPUInfo(GPUInfo* basic_gpu_info, 32 void MergeGPUInfo(GPUInfo* basic_gpu_info,
33 const GPUInfo& context_gpu_info) { 33 const GPUInfo& context_gpu_info) {
34 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); 34 MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
35 } 35 }
36 36
37 } // namespace gpu_info_collector 37 } // namespace gpu_info_collector
OLDNEW
« no previous file with comments | « gpu/config/gpu_info_collector_mac.mm ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698