diff options
author | rjkroege@chromium.org <rjkroege@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 02:28:29 +0000 |
---|---|---|
committer | rjkroege@chromium.org <rjkroege@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 02:28:29 +0000 |
commit | d413efc3e4247920efcb59f8e30a83260bec6e8f (patch) | |
tree | c7d5ef9be81ae628a7053d092b47526fd6e9d24d /gpu | |
parent | 2a38f0c0ecbd0ca782e29c5c2c3f308c39443f01 (diff) | |
download | chromium_src-d413efc3e4247920efcb59f8e30a83260bec6e8f.zip chromium_src-d413efc3e4247920efcb59f8e30a83260bec6e8f.tar.gz chromium_src-d413efc3e4247920efcb59f8e30a83260bec6e8f.tar.bz2 |
Support for ozone graphics in content.
BUG=178543
Review URL: https://chromiumcodereview.appspot.com/14985005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/config/gpu_info_collector_ozone.cc | 37 | ||||
-rw-r--r-- | gpu/gpu_config.gypi | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/gpu/config/gpu_info_collector_ozone.cc b/gpu/config/gpu_info_collector_ozone.cc new file mode 100644 index 0000000..acef6ae --- /dev/null +++ b/gpu/config/gpu_info_collector_ozone.cc @@ -0,0 +1,37 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "gpu/config/gpu_info_collector.h" + +#include "base/logging.h" + +namespace gpu { + +bool CollectContextGraphicsInfo(GPUInfo* gpu_info) { + return CollectBasicGraphicsInfo(gpu_info); +} + +GpuIDResult CollectGpuID(uint32* vendor_id, uint32* device_id) { + DCHECK(vendor_id && device_id); + *vendor_id = 0; + *device_id = 0; + return kGpuIDNotSupported; +} + +bool CollectBasicGraphicsInfo(GPUInfo* gpu_info) { + gpu_info->can_lose_context = false; + return true; +} + +bool CollectDriverInfoGL(GPUInfo* gpu_info) { + NOTIMPLEMENTED(); + return false; +} + +void MergeGPUInfo(GPUInfo* basic_gpu_info, + const GPUInfo& context_gpu_info) { + MergeGPUInfoGL(basic_gpu_info, context_gpu_info); +} + +} // namespace gpu_info_collector diff --git a/gpu/gpu_config.gypi b/gpu/gpu_config.gypi index 7ea4b56..c95605b 100644 --- a/gpu/gpu_config.gypi +++ b/gpu/gpu_config.gypi @@ -29,6 +29,7 @@ 'config/gpu_info.h', 'config/gpu_info_collector_android.cc', 'config/gpu_info_collector_mac.mm', + 'config/gpu_info_collector_ozone.cc', 'config/gpu_info_collector_win.cc', 'config/gpu_info_collector_x11.cc', 'config/gpu_info_collector.cc', |