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()18CallCapture::~CallCapture() {} ~ParamBuffer()19ParamBuffer::~ParamBuffer() {} ~ParamCapture()20ParamCapture::~ParamCapture() {} ResourceTracker()21ResourceTracker::ResourceTracker() {} ~ResourceTracker()22ResourceTracker::~ResourceTracker() {} 23 #ifdef ANGLE_ENABLE_CL ResourceTrackerCL()24ResourceTrackerCL::ResourceTrackerCL() {} ~ResourceTrackerCL()25ResourceTrackerCL::~ResourceTrackerCL() {} 26 #endif TrackedResource()27TrackedResource::TrackedResource() {} ~TrackedResource()28TrackedResource::~TrackedResource() {} StateResetHelper()29StateResetHelper::StateResetHelper() {} ~StateResetHelper()30StateResetHelper::~StateResetHelper() {} DataTracker()31DataTracker::DataTracker() {} ~DataTracker()32DataTracker::~DataTracker() {} DataCounters()33DataCounters::DataCounters() {} ~DataCounters()34DataCounters::~DataCounters() {} StringCounters()35StringCounters::StringCounters() {} ~StringCounters()36StringCounters::~StringCounters() {} ReplayWriter()37ReplayWriter::ReplayWriter() {} ~ReplayWriter()38ReplayWriter::~ReplayWriter() {} 39 FrameCapture()40FrameCapture::FrameCapture() {} ~FrameCapture()41FrameCapture::~FrameCapture() {} 42 FrameCaptureShared()43FrameCaptureShared::FrameCaptureShared() : mEnabled(false) {} ~FrameCaptureShared()44FrameCaptureShared::~FrameCaptureShared() {} onEndFrame(gl::Context * context)45void FrameCaptureShared::onEndFrame(gl::Context *context) {} onMakeCurrent(const gl::Context * context,const egl::Surface * drawSurface)46void FrameCaptureShared::onMakeCurrent(const gl::Context *context, const egl::Surface *drawSurface) 47 {} onDestroyContext(const gl::Context * context)48void FrameCaptureShared::onDestroyContext(const gl::Context *context) {} maybeGetShadowMemoryPointer(gl::Buffer * buffer,GLsizeiptr length,GLbitfield access)49void *FrameCaptureShared::maybeGetShadowMemoryPointer(gl::Buffer *buffer, 50 GLsizeiptr length, 51 GLbitfield access) 52 { 53 return buffer->getMapPointer(); 54 } determineMemoryProtectionSupport(gl::Context * context)55void FrameCaptureShared::determineMemoryProtectionSupport(gl::Context *context) {} 56 getProgramSources(gl::ShaderProgramID id) const57const 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)62void FrameCaptureShared::setProgramSources(gl::ShaderProgramID id, ProgramSources sources) {} 63 CoherentBufferTracker()64CoherentBufferTracker::CoherentBufferTracker() {} ~CoherentBufferTracker()65CoherentBufferTracker::~CoherentBufferTracker() {} 66 } // namespace angle 67