• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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() {}
23 #ifdef ANGLE_ENABLE_CL
ResourceTrackerCL()24 ResourceTrackerCL::ResourceTrackerCL() {}
~ResourceTrackerCL()25 ResourceTrackerCL::~ResourceTrackerCL() {}
26 #endif
TrackedResource()27 TrackedResource::TrackedResource() {}
~TrackedResource()28 TrackedResource::~TrackedResource() {}
StateResetHelper()29 StateResetHelper::StateResetHelper() {}
~StateResetHelper()30 StateResetHelper::~StateResetHelper() {}
DataTracker()31 DataTracker::DataTracker() {}
~DataTracker()32 DataTracker::~DataTracker() {}
DataCounters()33 DataCounters::DataCounters() {}
~DataCounters()34 DataCounters::~DataCounters() {}
StringCounters()35 StringCounters::StringCounters() {}
~StringCounters()36 StringCounters::~StringCounters() {}
ReplayWriter()37 ReplayWriter::ReplayWriter() {}
~ReplayWriter()38 ReplayWriter::~ReplayWriter() {}
39 
FrameCapture()40 FrameCapture::FrameCapture() {}
~FrameCapture()41 FrameCapture::~FrameCapture() {}
42 
FrameCaptureShared()43 FrameCaptureShared::FrameCaptureShared() : mEnabled(false) {}
~FrameCaptureShared()44 FrameCaptureShared::~FrameCaptureShared() {}
onEndFrame(gl::Context * context)45 void FrameCaptureShared::onEndFrame(gl::Context *context) {}
onMakeCurrent(const gl::Context * context,const egl::Surface * drawSurface)46 void FrameCaptureShared::onMakeCurrent(const gl::Context *context, const egl::Surface *drawSurface)
47 {}
onDestroyContext(const gl::Context * context)48 void FrameCaptureShared::onDestroyContext(const gl::Context *context) {}
maybeGetShadowMemoryPointer(gl::Buffer * buffer,GLsizeiptr length,GLbitfield access)49 void *FrameCaptureShared::maybeGetShadowMemoryPointer(gl::Buffer *buffer,
50                                                       GLsizeiptr length,
51                                                       GLbitfield access)
52 {
53     return buffer->getMapPointer();
54 }
determineMemoryProtectionSupport(gl::Context * context)55 void FrameCaptureShared::determineMemoryProtectionSupport(gl::Context *context) {}
56 
getProgramSources(gl::ShaderProgramID id) const57 const ProgramSources &FrameCaptureShared::getProgramSources(gl::ShaderProgramID id) const
58 {
59     const auto &foundSources = mCachedProgramSources.find(id);
60     return foundSources->second;
61 }
setProgramSources(gl::ShaderProgramID id,ProgramSources sources)62 void FrameCaptureShared::setProgramSources(gl::ShaderProgramID id, ProgramSources sources) {}
63 
CoherentBufferTracker()64 CoherentBufferTracker::CoherentBufferTracker() {}
~CoherentBufferTracker()65 CoherentBufferTracker::~CoherentBufferTracker() {}
66 }  // namespace angle
67