Hash :
bb135f0e
Author :
Date :
2023-08-24T15:29:11
Make ProgramExecutableImpl managed by ProgramExecutable This change allows both parts of the program executable to be safely backed up and swapped on link. Bug: angleproject:8297 Change-Id: I17e4b6c05e4e481a66a227d6047dbf943d2c2603 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4812138 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Charlie Lao <cclao@google.com> Reviewed-by: Geoff Lang <geofflang@chromium.org>
//
// Copyright 2023 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.
//
// ProgramExecutableNULL.h: Implementation of ProgramExecutableImpl.
#ifndef LIBANGLE_RENDERER_NULL_PROGRAMEXECUTABLENULL_H_
#define LIBANGLE_RENDERER_NULL_PROGRAMEXECUTABLENULL_H_
#include "libANGLE/ProgramExecutable.h"
#include "libANGLE/renderer/ProgramExecutableImpl.h"
namespace rx
{
class ProgramExecutableNULL : public ProgramExecutableImpl
{
public:
ProgramExecutableNULL(const gl::ProgramExecutable *executable);
~ProgramExecutableNULL() override;
void destroy(const gl::Context *context) override;
};
} // namespace rx
#endif // LIBANGLE_RENDERER_NULL_PROGRAMEXECUTABLENULL_H_