FrameCapture_mock.cpp (1914B)
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 { 18 CallCapture::~CallCapture() {} 19 ParamBuffer::~ParamBuffer() {} 20 ParamCapture::~ParamCapture() {} 21 ResourceTracker::ResourceTracker() {} 22 ResourceTracker::~ResourceTracker() {} 23 TrackedResource::TrackedResource() {} 24 TrackedResource::~TrackedResource() {} 25 StateResetHelper::StateResetHelper() {} 26 StateResetHelper::~StateResetHelper() {} 27 DataTracker::DataTracker() {} 28 DataTracker::~DataTracker() {} 29 DataCounters::DataCounters() {} 30 DataCounters::~DataCounters() {} 31 StringCounters::StringCounters() {} 32 StringCounters::~StringCounters() {} 33 ReplayWriter::ReplayWriter() {} 34 ReplayWriter::~ReplayWriter() {} 35 36 FrameCapture::FrameCapture() {} 37 FrameCapture::~FrameCapture() {} 38 39 FrameCaptureShared::FrameCaptureShared() : mEnabled(false) {} 40 FrameCaptureShared::~FrameCaptureShared() {} 41 void FrameCaptureShared::onEndFrame(const gl::Context *context) {} 42 void FrameCaptureShared::onMakeCurrent(const gl::Context *context, const egl::Surface *drawSurface) 43 {} 44 void FrameCaptureShared::onDestroyContext(const gl::Context *context) {} 45 void FrameCaptureShared::replay(gl::Context *context) {} 46 const ProgramSources &FrameCaptureShared::getProgramSources(gl::ShaderProgramID id) const 47 { 48 const auto &foundSources = mCachedProgramSources.find(id); 49 return foundSources->second; 50 } 51 void FrameCaptureShared::setProgramSources(gl::ShaderProgramID id, ProgramSources sources) {} 52 53 CoherentBufferTracker::CoherentBufferTracker() {} 54 CoherentBufferTracker::~CoherentBufferTracker() {} 55 } // namespace angle