blob: 03c6f3863d826a0611c72a5db1bbfed9731f5dd9 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TEST_GPU_TEST_UTILS_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TEST_GPU_TEST_UTILS_H_
namespace cc {
class ImageDecodeCache;
}
namespace viz {
class TestContextProvider;
}
namespace blink {
enum class SetIsContextLost { kNotModifyValue, kSetToTrue, kSetToFalse };
void InitializeSharedGpuContextGLES2(
viz::TestContextProvider* context_provider,
cc::ImageDecodeCache* cache = nullptr,
SetIsContextLost set_context_lost = SetIsContextLost::kNotModifyValue);
void InitializeSharedGpuContextRaster(
viz::TestContextProvider* context_provider,
cc::ImageDecodeCache* cache = nullptr,
SetIsContextLost set_context_lost = SetIsContextLost::kNotModifyValue);
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TEST_GPU_TEST_UTILS_H_