Flutter Impeller
allocator_gles.h
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
#pragma once
6
7
#include "flutter/fml/macros.h"
8
#include "
impeller/core/allocator.h
"
9
#include "
impeller/renderer/backend/gles/reactor_gles.h
"
10
11
namespace
impeller
{
12
13
class
AllocatorGLES
final :
public
Allocator
{
14
public
:
15
// |Allocator|
16
~AllocatorGLES
()
override
;
17
18
private
:
19
friend
class
ContextGLES
;
20
21
ReactorGLES::Ref
reactor_;
22
bool
is_valid_ =
false
;
23
24
explicit
AllocatorGLES
(
ReactorGLES::Ref
reactor);
25
26
// |Allocator|
27
bool
IsValid()
const
;
28
29
// |Allocator|
30
std::shared_ptr<DeviceBuffer> OnCreateBuffer(
31
const
DeviceBufferDescriptor
& desc)
override
;
32
33
// |Allocator|
34
std::shared_ptr<Texture> OnCreateTexture(
35
const
TextureDescriptor
& desc)
override
;
36
37
// |Allocator|
38
ISize
GetMaxTextureSizeSupported()
const override
;
39
40
FML_DISALLOW_COPY_AND_ASSIGN(
AllocatorGLES
);
41
};
42
43
}
// namespace impeller
impeller::DeviceBufferDescriptor
Definition:
device_buffer_descriptor.h:13
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition:
reactor_gles.h:31
impeller::ContextGLES
Definition:
context_gles.h:20
impeller::TSize< int64_t >
impeller::Allocator
An object that allocates device memory.
Definition:
allocator.h:25
allocator.h
reactor_gles.h
impeller::AllocatorGLES::~AllocatorGLES
~AllocatorGLES() override
impeller::TextureDescriptor
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...
Definition:
texture_descriptor.h:39
impeller
Definition:
aiks_context.cc:10
impeller::AllocatorGLES
Definition:
allocator_gles.h:13
impeller
renderer
backend
gles
allocator_gles.h
Generated by
1.8.17