diff options
Diffstat (limited to 'gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp')
-rw-r--r-- | gfx/angle/checkout/src/libANGLE/capture/FrameCapture_mock.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
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 |