blob: 0d4a94b666606044ac6d5634e483dfc11f185f10 [file] [log] [blame]
// Copyright 2016 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 "base/single_thread_task_runner.h"
#include "content/common/content_export.h"
#include "gpu/ipc/host/shader_disk_cache.h"
namespace content {
// Initializes the ShaderCacheFactory singleton instance. The singleton
// instance is created and used in the thread associated with |task_runner|.
CONTENT_EXPORT void InitShaderCacheFactorySingleton(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
// Returns an instance previously created by InitShaderCacheFactorySingleton().
// This can return nullptr if an instance has not yet been created.
CONTENT_EXPORT gpu::ShaderCacheFactory* GetShaderCacheFactorySingleton();
} // namespace content