Hash :
67e4aff5
Author :
Date :
2021-04-02T13:17:00
Fix rapidjson build error in Skia. Instead of using defines in the header, use the same approach as we do with frame capture by defining a stub "mock" cpp file. Bug: angleproject:5805 Change-Id: Ief1cb6497ddafc9656bb0e7d6a921eff3610a7fb Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2801695 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
//
// Copyright 2021 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.
//
// frame_capture_utils_mock.cpp:
// ANGLE frame capture util stub implementation.
//
#include "libANGLE/capture/frame_capture_utils.h"
namespace angle
{
Result SerializeContextToString(const gl::Context *context, std::string *stringOut)
{
*stringOut = "SerializationNotAvailable";
return angle::Result::Continue;
}
} // namespace angle