Flutter Engine
The Flutter Engine
gpu_surface_metal_delegate.cc
Go to the documentation of this file.
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/shell/gpu/gpu_surface_metal_delegate.h"
6
7namespace flutter {
8
10 MTLRenderTargetType render_target_type)
11 : render_target_type_(render_target_type) {}
12
14
16 return render_target_type_;
17}
18
20 return true;
21}
22
23} // namespace flutter
virtual bool AllowsDrawingWhenGpuDisabled() const
Whether to allow drawing to the surface when the GPU is disabled.
GPUSurfaceMetalDelegate(MTLRenderTargetType render_target)
Construct a new GPUSurfaceMetalDelegate object with the specified render_target type.