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