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() {} TrackedResource()23TrackedResource::TrackedResource() {} ~TrackedResource()24TrackedResource::~TrackedResource() {} StateResetHelper()25StateResetHelper::StateResetHelper() {} ~StateResetHelper()26StateResetHelper::~StateResetHelper() {} DataTracker()27DataTracker::DataTracker() {} ~DataTracker()28DataTracker::~DataTracker() {} DataCounters()29DataCounters::DataCounters() {} ~DataCounters()30DataCounters::~DataCounters() {} StringCounters()31StringCounters::StringCounters() {} ~StringCounters()32StringCounters::~StringCounters() {} ReplayWriter()33ReplayWriter::ReplayWriter() {} ~ReplayWriter()34ReplayWriter::~ReplayWriter() {} 35 FrameCapture()36FrameCapture::FrameCapture() {} ~FrameCapture()37FrameCapture::~FrameCapture() {} 38 FrameCaptureShared()39FrameCaptureShared::FrameCaptureShared() : mEnabled(false) {} ~FrameCaptureShared()40FrameCaptureShared::~FrameCaptureShared() {} onEndFrame(gl::Context * context)41void FrameCaptureShared::onEndFrame(gl::Context *context) {} onMakeCurrent(const gl::Context * context,const egl::Surface * drawSurface)42void FrameCaptureShared::onMakeCurrent(const gl::Context *context, const egl::Surface *drawSurface) 43 {} onDestroyContext(const gl::Context * context)44void FrameCaptureShared::onDestroyContext(const gl::Context *context) {} maybeGetShadowMemoryPointer(gl::Buffer * buffer,GLsizeiptr length,GLbitfield access)45void *FrameCaptureShared::maybeGetShadowMemoryPointer(gl::Buffer *buffer, 46 GLsizeiptr length, 47 GLbitfield access) 48 { 49 return buffer->getMapPointer(); 50 } determineMemoryProtectionSupport(gl::Context * context)51void FrameCaptureShared::determineMemoryProtectionSupport(gl::Context *context) {} 52 getProgramSources(gl::ShaderProgramID id) const53const 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)58void FrameCaptureShared::setProgramSources(gl::ShaderProgramID id, ProgramSources sources) {} 59 CoherentBufferTracker()60CoherentBufferTracker::CoherentBufferTracker() {} ~CoherentBufferTracker()61CoherentBufferTracker::~CoherentBufferTracker() {} 62 } // namespace angle 63