Hash :
91002266
Author :
Date :
2018-12-12T16:05:24
Use angle::Result and pass a context pointer to TransformFeedbackImpl BUG=angleproject:3020 Change-Id: Ib0877dd33f9a8c6ea57976642f1b904258cb6a86 Reviewed-on: https://chromium-review.googlesource.com/c/1374273 Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
//
// 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.
//
// TransformFeedbackImpl_mock.h: Defines a mock of the TransformFeedbackImpl class.
#ifndef LIBANGLE_RENDERER_TRANSFORMFEEDBACKIMPLMOCK_H_
#define LIBANGLE_RENDERER_TRANSFORMFEEDBACKIMPLMOCK_H_
#include "gmock/gmock.h"
#include "libANGLE/renderer/TransformFeedbackImpl.h"
namespace rx
{
class MockTransformFeedbackImpl : public TransformFeedbackImpl
{
public:
MockTransformFeedbackImpl(const gl::TransformFeedbackState &state)
: TransformFeedbackImpl(state)
{}
~MockTransformFeedbackImpl() { destructor(); }
MOCK_METHOD2(begin, angle::Result(const gl::Context *, gl::PrimitiveMode));
MOCK_METHOD1(end, angle::Result(const gl::Context *));
MOCK_METHOD1(pause, angle::Result(const gl::Context *));
MOCK_METHOD1(resume, angle::Result(const gl::Context *));
MOCK_METHOD2(bindGenericBuffer,
angle::Result(const gl::Context *, const gl::BindingPointer<gl::Buffer> &));
MOCK_METHOD3(bindIndexedBuffer,
angle::Result(const gl::Context *,
size_t,
const gl::OffsetBindingPointer<gl::Buffer> &));
MOCK_METHOD0(destructor, void());
};
} // namespace rx
#endif // LIBANGLE_RENDERER_TRANSFORMFEEDBACKIMPLMOCK_H_