mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
30 lines
626 B
C++
30 lines
626 B
C++
// 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.
|
|
|
|
#include "flutter/flow/surface.h"
|
|
|
|
namespace flutter {
|
|
|
|
Surface::Surface() = default;
|
|
|
|
Surface::~Surface() = default;
|
|
|
|
std::unique_ptr<GLContextResult> Surface::MakeRenderContextCurrent() {
|
|
return std::make_unique<GLContextDefaultResult>(true);
|
|
}
|
|
|
|
bool Surface::ClearRenderContext() {
|
|
return false;
|
|
}
|
|
|
|
bool Surface::AllowsDrawingWhenGpuDisabled() const {
|
|
return true;
|
|
}
|
|
|
|
bool Surface::EnableRasterCache() const {
|
|
return true;
|
|
}
|
|
|
|
} // namespace flutter
|