1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "flutter/lib/ui/window/window.h" 6 7 #include "flutter/lib/ui/compositing/scene.h" 8 9 namespace flutter { 10 Window(WindowClient * client)11Window::Window(WindowClient* client) : client_(client) {} 12 DidCreateIsolate()13void Window::DidCreateIsolate() {} 14 UpdateWindowMetrics(const ViewportMetrics & metrics)15void Window::UpdateWindowMetrics(const ViewportMetrics& metrics) { 16 viewport_metrics_ = metrics; 17 } 18 UpdateUserSettingsData(const std::string & data)19void Window::UpdateUserSettingsData(const std::string& data) { 20 } 21 DispatchPointerDataPacket(const PointerDataPacket & packet)22void Window::DispatchPointerDataPacket(const PointerDataPacket& packet) { 23 } 24 BeginFrame(fml::TimePoint frameTime)25void Window::BeginFrame(fml::TimePoint frameTime) { 26 if (begin_frame_callback_) { 27 begin_frame_callback_(frameTime.ToEpochDelta().ToNanoseconds()); 28 } 29 } 30 ReportTimings(std::vector<int64_t> timings)31void Window::ReportTimings(std::vector<int64_t> timings) { 32 } 33 ScheduleFrame()34void Window::ScheduleFrame() { 35 client()->ScheduleFrame(); 36 } 37 38 } // namespace flutter 39