xref: /aosp_15_r20/external/angle/src/libANGLE/capture/FrameCapture_mock.cpp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // FrameCapture_mock.cpp:
7 //   ANGLE mock Frame capture implementation.
8 //
9 
10 #include "libANGLE/capture/FrameCapture.h"
11 
12 #if ANGLE_CAPTURE_ENABLED
13 #    error Frame capture must be disabled to include this file.
14 #endif  // ANGLE_CAPTURE_ENABLED
15 
16 namespace angle
17 {
~CallCapture()18 CallCapture::~CallCapture() {}
~ParamBuffer()19 ParamBuffer::~ParamBuffer() {}
~ParamCapture()20 ParamCapture::~ParamCapture() {}
ResourceTracker()21 ResourceTracker::ResourceTracker() {}
~ResourceTracker()22 ResourceTracker::~ResourceTracker() {}
TrackedResource()23 TrackedResource::TrackedResource() {}
~TrackedResource()24 TrackedResource::~TrackedResource() {}
StateResetHelper()25 StateResetHelper::StateResetHelper() {}
~StateResetHelper()26 StateResetHelper::~StateResetHelper() {}
DataTracker()27 DataTracker::DataTracker() {}
~DataTracker()28 DataTracker::~DataTracker() {}
DataCounters()29 DataCounters::DataCounters() {}
~DataCounters()30 DataCounters::~DataCounters() {}
StringCounters()31 StringCounters::StringCounters() {}
~StringCounters()32 StringCounters::~StringCounters() {}
ReplayWriter()33 ReplayWriter::ReplayWriter() {}
~ReplayWriter()34 ReplayWriter::~ReplayWriter() {}
35 
FrameCapture()36 FrameCapture::FrameCapture() {}
~FrameCapture()37 FrameCapture::~FrameCapture() {}
38 
FrameCaptureShared()39 FrameCaptureShared::FrameCaptureShared() : mEnabled(false) {}
~FrameCaptureShared()40 FrameCaptureShared::~FrameCaptureShared() {}
onEndFrame(gl::Context * context)41 void FrameCaptureShared::onEndFrame(gl::Context *context) {}
onMakeCurrent(const gl::Context * context,const egl::Surface * drawSurface)42 void FrameCaptureShared::onMakeCurrent(const gl::Context *context, const egl::Surface *drawSurface)
43 {}
onDestroyContext(const gl::Context * context)44 void FrameCaptureShared::onDestroyContext(const gl::Context *context) {}
maybeGetShadowMemoryPointer(gl::Buffer * buffer,GLsizeiptr length,GLbitfield access)45 void *FrameCaptureShared::maybeGetShadowMemoryPointer(gl::Buffer *buffer,
46                                                       GLsizeiptr length,
47                                                       GLbitfield access)
48 {
49     return buffer->getMapPointer();
50 }
determineMemoryProtectionSupport(gl::Context * context)51 void FrameCaptureShared::determineMemoryProtectionSupport(gl::Context *context) {}
52 
getProgramSources(gl::ShaderProgramID id) const53 const ProgramSources &FrameCaptureShared::getProgramSources(gl::ShaderProgramID id) const
54 {
55     const auto &foundSources = mCachedProgramSources.find(id);
56     return foundSources->second;
57 }
setProgramSources(gl::ShaderProgramID id,ProgramSources sources)58 void FrameCaptureShared::setProgramSources(gl::ShaderProgramID id, ProgramSources sources) {}
59 
CoherentBufferTracker()60 CoherentBufferTracker::CoherentBufferTracker() {}
~CoherentBufferTracker()61 CoherentBufferTracker::~CoherentBufferTracker() {}
62 }  // namespace angle
63