#include "components/viz/service/display/display_resource_provider_skia.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/containers/contains.h"
#include "base/containers/flat_set.h"
#include "base/not_fatal_until.h"
#include "build/build_config.h"
#include "components/viz/service/display/resource_fence.h"
#include "gpu/command_buffer/service/scheduler_sequence.h"
#include "third_party/skia/include/core/SkColorSpace.h"
namespace viz {
class ScopedAllowGpuAccessForDisplayResourceProvider { … };
DisplayResourceProviderSkia::DisplayResourceProviderSkia()
: … { … }
DisplayResourceProviderSkia::~DisplayResourceProviderSkia() { … }
std::vector<ReturnedResource>
DisplayResourceProviderSkia::DeleteAndReturnUnusedResourcesToChildImpl(
Child& child_info,
DeleteStyle style,
const std::vector<ResourceId>& unused) { … }
DisplayResourceProviderSkia::LockSetForExternalUse::LockSetForExternalUse(
DisplayResourceProviderSkia* resource_provider,
ExternalUseClient* client)
: … { … }
DisplayResourceProviderSkia::LockSetForExternalUse::~LockSetForExternalUse() { … }
ExternalUseClient::ImageContext*
DisplayResourceProviderSkia::LockSetForExternalUse::LockResource(
ResourceId id,
bool maybe_concurrent_reads,
bool raw_draw_is_possible) { … }
void DisplayResourceProviderSkia::LockSetForExternalUse::UnlockResources(
const gpu::SyncToken& sync_token) { … }
DisplayResourceProviderSkia::ScopedExclusiveReadLockSharedImage::
ScopedExclusiveReadLockSharedImage(
DisplayResourceProviderSkia* resource_provider,
ResourceId resource_id)
: … { … }
DisplayResourceProviderSkia::ScopedExclusiveReadLockSharedImage::
~ScopedExclusiveReadLockSharedImage() = default;
DisplayResourceProviderSkia::ScopedExclusiveReadLockSharedImage::
ScopedExclusiveReadLockSharedImage(
ScopedExclusiveReadLockSharedImage&& other) = default;
}