#include "components/viz/test/test_context_support.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
namespace viz {
TestContextSupport::TestContextSupport() : … { … }
TestContextSupport::~TestContextSupport() = default;
void TestContextSupport::FlushPendingWork() { … }
void TestContextSupport::SignalSyncToken(const gpu::SyncToken& sync_token,
base::OnceClosure callback) { … }
bool TestContextSupport::IsSyncTokenSignaled(const gpu::SyncToken& sync_token) { … }
void TestContextSupport::SignalQuery(uint32_t query,
base::OnceClosure callback) { … }
void TestContextSupport::GetGpuFence(
uint32_t gpu_fence_id,
base::OnceCallback<void(std::unique_ptr<gfx::GpuFence>)> callback) { … }
void TestContextSupport::SetAggressivelyFreeResources(
bool aggressively_free_resources) { … }
void TestContextSupport::CallAllSyncPointCallbacks() { … }
uint64_t TestContextSupport::ShareGroupTracingGUID() const { … }
void TestContextSupport::SetErrorMessageCallback(
base::RepeatingCallback<void(const char*, int32_t)> callback) { … }
bool TestContextSupport::ThreadSafeShallowLockDiscardableTexture(
uint32_t texture_id) { … }
void TestContextSupport::CompleteLockDiscardableTexureOnContextThread(
uint32_t texture_id) { … }
bool TestContextSupport::ThreadsafeDiscardableTextureIsDeletedForTracing(
uint32_t texture_id) { … }
void* TestContextSupport::MapTransferCacheEntry(uint32_t serialized_size) { … }
void TestContextSupport::UnmapAndCreateTransferCacheEntry(uint32_t type,
uint32_t id) { … }
bool TestContextSupport::ThreadsafeLockTransferCacheEntry(uint32_t entry_type,
uint32_t entry_id) { … }
void TestContextSupport::UnlockTransferCacheEntries(
const std::vector<std::pair<uint32_t, uint32_t>>& entries) { … }
void TestContextSupport::DeleteTransferCacheEntry(uint32_t entry_type,
uint32_t entry_id) { … }
unsigned int TestContextSupport::GetTransferBufferFreeSize() const { … }
bool TestContextSupport::IsJpegDecodeAccelerationSupported() const { … }
bool TestContextSupport::IsWebPDecodeAccelerationSupported() const { … }
bool TestContextSupport::CanDecodeWithHardwareAcceleration(
const cc::ImageHeaderMetadata* image_metadata) const { … }
bool TestContextSupport::HasGrContextSupport() const { … }
void TestContextSupport::SetGrContext(GrDirectContext* gr) { … }
void TestContextSupport::WillCallGLFromSkia() { … }
void TestContextSupport::DidCallGLFromSkia() { … }
}