chromium/gpu/command_buffer/service/memory_tracking.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "gpu/command_buffer/service/memory_tracking.h"
#include "base/task/sequenced_task_runner.h"

namespace gpu {

// This can be created on the render thread on Andorid Webview which is managed
// by the OS and doesn't have a task runner associated with it in which case
// base::SequencedTaskRunner::GetCurrentDefault() will trigger a DCHECK.
MemoryTypeTracker::MemoryTypeTracker(MemoryTracker* memory_tracker)
    :{}

MemoryTypeTracker::MemoryTypeTracker(
    MemoryTracker* memory_tracker,
    scoped_refptr<base::SequencedTaskRunner> task_runner)
    :{}

MemoryTypeTracker::~MemoryTypeTracker() {}

void MemoryTypeTracker::TrackMemAlloc(size_t bytes) {}

void MemoryTypeTracker::TrackMemFree(size_t bytes) {}

size_t MemoryTypeTracker::GetMemRepresented() const {}

void MemoryTypeTracker::TrackMemoryAllocatedChange(int64_t delta) {}

}  // namespace gpu