blob: f91224c50845f86d8ee52c16f79b2a971332da41 [file]
// Copyright 2013 The Flutter 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 FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_
#define FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_
#include "impeller/playground/playground_test.h"
#include "impeller/entity/contents/content_context.h"
#include "impeller/entity/entity.h"
#include "impeller/typographer/typographer_context.h"
namespace impeller {
class EntityPlayground : public PlaygroundTest {
public:
using EntityPlaygroundCallback =
std::function<bool(ContentContext& context, RenderPass& pass)>;
EntityPlayground();
~EntityPlayground();
bool OpenPlaygroundHere(Entity entity);
bool OpenPlaygroundHere(EntityPlaygroundCallback callback);
private:
EntityPlayground(const EntityPlayground&) = delete;
EntityPlayground& operator=(const EntityPlayground&) = delete;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_