blob: aa0e69061952f63e6c84a5aedb179828672b0ced [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_FAKE_SURFACE_RESOURCE_HOLDER_CLIENT_H_
#define CC_TEST_FAKE_SURFACE_RESOURCE_HOLDER_CLIENT_H_
#include "cc/surfaces/surface_resource_holder_client.h"
namespace cc {
class FakeSurfaceResourceHolderClient : public SurfaceResourceHolderClient {
public:
FakeSurfaceResourceHolderClient();
~FakeSurfaceResourceHolderClient() override;
// SurfaceResourceHolderClient implementation.
void ReturnResources(const ReturnedResourceArray& resources) override;
void clear_returned_resources() { returned_resources_.clear(); }
const ReturnedResourceArray& returned_resources() {
return returned_resources_;
}
private:
ReturnedResourceArray returned_resources_;
};
} // namespace cc
#endif // CC_TEST_FAKE_SURFACE_RESOURCE_HOLDER_CLIENT_H_