Hash :
76b8f469
Author :
Date :
2017-04-21T12:23:40
Use a shared state for egl::Image. This allows us to stop duplicating some information in the impl. BUG=angleproject:1635 Change-Id: If8f7d2418571c3254729f48c463814ec18ed2644 Reviewed-on: https://chromium-review.googlesource.com/469153 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
//
// Copyright (c) 2015 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.
//
// ImageImpl_mock.h: Defines a mock of the ImageImpl class.
#ifndef LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_
#define LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_
#include "gmock/gmock.h"
#include "libANGLE/renderer/ImageImpl.h"
namespace rx
{
class MockImageImpl : public ImageImpl
{
public:
MockImageImpl(const egl::ImageState &state,
EGLenum /*target*/,
const egl::AttributeMap & /*attribs*/)
: ImageImpl(state)
{
}
virtual ~MockImageImpl() { destructor(); }
MOCK_METHOD0(initialize, egl::Error(void));
MOCK_METHOD1(orphan, gl::Error(egl::ImageSibling *));
MOCK_METHOD0(destructor, void());
};
} // namespace rx
#endif // LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_