| Index: content/gpu/gpu_info_collector_ozone.cc
|
| diff --git a/content/gpu/gpu_info_collector_ozone.cc b/content/gpu/gpu_info_collector_ozone.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..11e1ad40aa0e0bcbeb96d38125436d7729926969
|
| --- /dev/null
|
| +++ b/content/gpu/gpu_info_collector_ozone.cc
|
| @@ -0,0 +1,50 @@
|
| +// Copyright (c) 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 "content/gpu/gpu_info_collector.h"
|
| +
|
| +#include "base/command_line.h"
|
| +#include "base/logging.h"
|
| +#include "base/string_number_conversions.h"
|
| +#include "base/string_util.h"
|
| +#include "base/strings/string_piece.h"
|
| +#include "base/strings/string_split.h"
|
| +#include "cc/base/switches.h"
|
| +#include "content/public/common/content_switches.h"
|
| +
|
| +namespace gpu_info_collector {
|
| +
|
| +bool CollectContextGraphicsInfo(content::GPUInfo* gpu_info) {
|
| + // can_lose_context must be false to enable accelerated Canvas2D
|
| + gpu_info->can_lose_context = false;
|
| + gpu_info->finalized = true;
|
| + return CollectGraphicsInfoGL(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(content::GPUInfo* gpu_info) {
|
| + gpu_info->can_lose_context = false;
|
| +
|
| + CommandLine::ForCurrentProcess()->AppendSwitch(
|
| + switches::kEnableVirtualGLContexts);
|
| + return true;
|
| +}
|
| +
|
| +bool CollectDriverInfoGL(content::GPUInfo* gpu_info) {
|
| + NOTIMPLEMENTED();
|
| + return false;
|
| +}
|
| +
|
| +void MergeGPUInfo(content::GPUInfo* basic_gpu_info,
|
| + const content::GPUInfo& context_gpu_info) {
|
| + MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
|
| +}
|
| +
|
| +} // namespace gpu_info_collector
|
|
|