Commit 324443a6 authored by Scott Graham's avatar Scott Graham

fuchsia: Stub a few functions to get Debug linking

AmountOfAvailablePhysicalMemoryImpl isn't currently implementable as
there's no system call for it.

The GPU collection ones, there's no GPU access set up yet at all.

Bug: 706592, 707031, 743296
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ib161bf45120ff13127ad198d57017ffc6d7c9a79
Reviewed-on: https://chromium-review.googlesource.com/592642Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#490815}
parent d345607e
......@@ -6,6 +6,8 @@
#include <magenta/syscalls.h>
#include "base/logging.h"
namespace base {
// static
......@@ -13,6 +15,13 @@ int64_t SysInfo::AmountOfPhysicalMemoryImpl() {
return mx_system_get_physmem();
}
// static
int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() {
// TODO(fuchsia): https://crbug.com/706592 This is not exposed.
NOTREACHED();
return 0;
}
// static
int SysInfo::NumberOfProcessors() {
return mx_system_get_num_cpus();
......
......@@ -113,6 +113,10 @@ source_set("config_sources") {
"gpu_util.h",
]
if (is_fuchsia) {
sources += [ "gpu_info_collector_fuchsia.cc" ]
}
sources += process_json_outputs
configs += [
......
// Copyright 2017 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 {
CollectInfoResult CollectBasicGraphicsInfo(GPUInfo* gpu_info) {
NOTIMPLEMENTED(); // TODO(fuchsia): https://crbug.com/707031 Some day.
return kCollectInfoNonFatalFailure;
}
CollectInfoResult CollectDriverInfoGL(GPUInfo* gpu_info) {
NOTIMPLEMENTED(); // TODO(fuchsia): https://crbug.com/707031 Some day.
return kCollectInfoNonFatalFailure;
}
} // namespace gpu
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment