提交 a415e0e7 编写于 作者: A Adam Barth

Fix Linux build

上级 fcc642e4
......@@ -14,7 +14,7 @@ static const size_t kMaxSamples = 120;
static const size_t kMaxFrameMarkers = 8;
Stopwatch::Stopwatch() : start_(ftl::TimePoint::Now()), current_sample_(0) {
const ftl::TimeDelta delta;
const ftl::TimeDelta delta = ftl::TimeDelta::Zero();
laps_.resize(kMaxSamples, delta);
}
......
......@@ -9,12 +9,8 @@
namespace sky {
namespace shell {
PlatformView* PlatformView::Create(const Config& config) {
return new PlatformViewGLFW(config);
}
PlatformViewGLFW::PlatformViewGLFW(const Config& config)
: PlatformView(config), window_(gfx::kNullAcceleratedWidget) {}
: window_(gfx::kNullAcceleratedWidget) {}
PlatformViewGLFW::~PlatformViewGLFW() {}
......
......@@ -7,14 +7,9 @@
namespace sky {
namespace shell {
PlatformView* PlatformView::Create(const Config& config,
SurfaceConfig surface_config) {
return new PlatformViewLinux(config, surface_config);
}
PlatformViewLinux::PlatformViewLinux(const Config& config,
SurfaceConfig surface_config)
: PlatformView(config, surface_config), weak_factory_(this) {}
SurfaceConfig surface_config)
: weak_factory_(this) {}
PlatformViewLinux::~PlatformViewLinux() {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册