From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- .../src/libANGLE/capture/FrameCapture_mock.cpp | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp (limited to 'gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp') diff --git a/gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp b/gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp new file mode 100644 index 0000000000..dc9e44c5bb --- /dev/null +++ b/gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp @@ -0,0 +1,55 @@ +// +// Copyright 2019 The ANGLE Project Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// FrameCapture_mock.cpp: +// ANGLE mock Frame capture implementation. +// + +#include "libANGLE/capture/FrameCapture.h" + +#if ANGLE_CAPTURE_ENABLED +# error Frame capture must be disabled to include this file. +#endif // ANGLE_CAPTURE_ENABLED + +namespace angle +{ +CallCapture::~CallCapture() {} +ParamBuffer::~ParamBuffer() {} +ParamCapture::~ParamCapture() {} +ResourceTracker::ResourceTracker() {} +ResourceTracker::~ResourceTracker() {} +TrackedResource::TrackedResource() {} +TrackedResource::~TrackedResource() {} +StateResetHelper::StateResetHelper() {} +StateResetHelper::~StateResetHelper() {} +DataTracker::DataTracker() {} +DataTracker::~DataTracker() {} +DataCounters::DataCounters() {} +DataCounters::~DataCounters() {} +StringCounters::StringCounters() {} +StringCounters::~StringCounters() {} +ReplayWriter::ReplayWriter() {} +ReplayWriter::~ReplayWriter() {} + +FrameCapture::FrameCapture() {} +FrameCapture::~FrameCapture() {} + +FrameCaptureShared::FrameCaptureShared() : mEnabled(false) {} +FrameCaptureShared::~FrameCaptureShared() {} +void FrameCaptureShared::onEndFrame(const gl::Context *context) {} +void FrameCaptureShared::onMakeCurrent(const gl::Context *context, const egl::Surface *drawSurface) +{} +void FrameCaptureShared::onDestroyContext(const gl::Context *context) {} +void FrameCaptureShared::replay(gl::Context *context) {} +const ProgramSources &FrameCaptureShared::getProgramSources(gl::ShaderProgramID id) const +{ + const auto &foundSources = mCachedProgramSources.find(id); + return foundSources->second; +} +void FrameCaptureShared::setProgramSources(gl::ShaderProgramID id, ProgramSources sources) {} + +CoherentBufferTracker::CoherentBufferTracker() {} +CoherentBufferTracker::~CoherentBufferTracker() {} +} // namespace angle -- cgit v1.2.3