mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Also, rename SkyViewClient to RuntimeDelegate. These names are more sensible. This patch also cleans up the RuntimeDelegate a bit, for example by removing support for flushing real-time events, which aren't used.
30 lines
763 B
C++
30 lines
763 B
C++
// Copyright 2015 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 FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
|
|
#define FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "dart/runtime/include/dart_api.h"
|
|
#include "flutter/flow/layers/layer_tree.h"
|
|
|
|
namespace blink {
|
|
|
|
class RuntimeDelegate {
|
|
public:
|
|
virtual void ScheduleFrame() = 0;
|
|
virtual void Render(std::unique_ptr<flow::LayerTree> layer_tree) = 0;
|
|
|
|
virtual void DidCreateMainIsolate(Dart_Isolate isolate);
|
|
virtual void DidCreateSecondaryIsolate(Dart_Isolate isolate);
|
|
|
|
protected:
|
|
virtual ~RuntimeDelegate();
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
|