Commit 2249fef2 by Jamie Madill Committed by Commit Bot

Capture/Replay: Move stub implementation to new file.

This lets the MSVC parser work better with FrameCapture.cpp. Bug: angleproject:3611 Change-Id: I249106dce81a7965684caf1a835f0472b34e8963 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1804878Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarTobin Ehlis <tobine@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 857bb7ff
...@@ -764,7 +764,7 @@ angle_source_set("libANGLE") { ...@@ -764,7 +764,7 @@ angle_source_set("libANGLE") {
] ]
public_configs = [ ":angle_frame_capture_disabled" ] public_configs = [ ":angle_frame_capture_disabled" ]
sources = [ sources = [
"src/libANGLE/FrameCapture.cpp", "src/libANGLE/FrameCapture_mock.cpp",
] ]
# gl_enum_utils defaults included in with_capture build # gl_enum_utils defaults included in with_capture build
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
#include "libANGLE/VertexArray.h" #include "libANGLE/VertexArray.h"
#include "libANGLE/gl_enum_utils_autogen.h" #include "libANGLE/gl_enum_utils_autogen.h"
#if !ANGLE_CAPTURE_ENABLED
# error Frame capture must be enbled to include this file.
#endif // !ANGLE_CAPTURE_ENABLED
#ifdef ANGLE_PLATFORM_ANDROID #ifdef ANGLE_PLATFORM_ANDROID
# define ANGLE_CAPTURE_PATH ("/sdcard/Android/data/" + CurrentAPKName() + "/") # define ANGLE_CAPTURE_PATH ("/sdcard/Android/data/" + CurrentAPKName() + "/")
...@@ -53,16 +57,6 @@ std::string CurrentAPKName() ...@@ -53,16 +57,6 @@ std::string CurrentAPKName()
namespace angle namespace angle
{ {
#if !ANGLE_CAPTURE_ENABLED
CallCapture::~CallCapture() {}
ParamBuffer::~ParamBuffer() {}
ParamCapture::~ParamCapture() {}
FrameCapture::FrameCapture() {}
FrameCapture::~FrameCapture() {}
void FrameCapture::onEndFrame(const gl::Context *context) {}
void FrameCapture::replay(gl::Context *context) {}
#else
namespace namespace
{ {
std::string GetCaptureFileName(int contextId, size_t frameIndex, const char *suffix) std::string GetCaptureFileName(int contextId, size_t frameIndex, const char *suffix)
...@@ -1138,5 +1132,4 @@ void WriteParamValueToStream<ParamType::TVertexArrayID>(std::ostream &os, gl::Ve ...@@ -1138,5 +1132,4 @@ void WriteParamValueToStream<ParamType::TVertexArrayID>(std::ostream &os, gl::Ve
{ {
os << "gVertexArrayMap[" << value.value << "]"; os << "gVertexArrayMap[" << value.value << "]";
} }
#endif // ANGLE_CAPTURE_ENABLED
} // namespace angle } // namespace angle
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// FrameCapture_mock.cpp:
// ANGLE mock Frame capture implementation.
//
#include "libANGLE/FrameCapture.h"
#if ANGLE_CAPTURE_ENABLED
# error Frame capture must be disabled to include this file.
#endif // ANGLE_CAPTURE_ENABLED
namespace angle
{
CallCapture::~CallCapture() {}
ParamBuffer::~ParamBuffer() {}
ParamCapture::~ParamCapture() {}
FrameCapture::FrameCapture() {}
FrameCapture::~FrameCapture() {}
void FrameCapture::onEndFrame(const gl::Context *context) {}
void FrameCapture::replay(gl::Context *context) {}
} // namespace angle
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment