Make the engine provide layer trees to the rasterizer via a pipeline. (flutter/engine#2942)

This commit is contained in:
Chinmay Garde
2016-08-18 11:23:15 -07:00
committed by GitHub
parent 2f7fde0ebd
commit 6cd3679c83

View File

@@ -6,6 +6,7 @@
#define SYNCHRONIZATION_PIPELINE_H_
#include "lib/ftl/macros.h"
#include "lib/ftl/memory/ref_counted.h"
#include "lib/ftl/synchronization/mutex.h"
#include "lib/ftl/functional/closure.h"
#include "flutter/synchronization/semaphore.h"
@@ -24,7 +25,7 @@ enum class PipelineConsumeResult {
};
template <class R>
class Pipeline {
class Pipeline : public ftl::RefCountedThreadSafe<Pipeline<R>> {
public:
using Resource = R;
using ResourcePtr = std::unique_ptr<Resource>;