Flutter Engine
The Flutter Engine
shell
gpu
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
7
namespace
flutter
{
8
9
GPUSurfaceMetalDelegate::GPUSurfaceMetalDelegate
(
10
MTLRenderTargetType
render_target_type)
11
: render_target_type_(render_target_type) {}
12
13
GPUSurfaceMetalDelegate::~GPUSurfaceMetalDelegate
() =
default
;
14
15
MTLRenderTargetType
GPUSurfaceMetalDelegate::GetRenderTargetType
() {
16
return
render_target_type_;
17
}
18
19
bool
GPUSurfaceMetalDelegate::AllowsDrawingWhenGpuDisabled
()
const
{
20
return
true
;
21
}
22
23
}
// namespace flutter
flutter::GPUSurfaceMetalDelegate::AllowsDrawingWhenGpuDisabled
virtual bool AllowsDrawingWhenGpuDisabled() const
Whether to allow drawing to the surface when the GPU is disabled.
Definition:
gpu_surface_metal_delegate.cc:19
flutter::GPUSurfaceMetalDelegate::~GPUSurfaceMetalDelegate
virtual ~GPUSurfaceMetalDelegate()
flutter::GPUSurfaceMetalDelegate::GPUSurfaceMetalDelegate
GPUSurfaceMetalDelegate(MTLRenderTargetType render_target)
Construct a new GPUSurfaceMetalDelegate object with the specified render_target type.
Definition:
gpu_surface_metal_delegate.cc:9
flutter::GPUSurfaceMetalDelegate::GetRenderTargetType
MTLRenderTargetType GetRenderTargetType()
Definition:
gpu_surface_metal_delegate.cc:15
flutter
Definition:
asset_manager.cc:10
flutter::MTLRenderTargetType
MTLRenderTargetType
Definition:
gpu_surface_metal_delegate.h:38
Generated on Sun Jun 23 2024 21:55:08 for Flutter Engine by
1.9.4