Flutter Impeller
canvas_type.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
#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
6
#define FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
7
8
#include "
impeller/aiks/canvas.h
"
9
#include "
impeller/aiks/canvas_recorder.h
"
10
#include "
impeller/aiks/trace_serializer.h
"
11
12
namespace
impeller
{
13
14
/// CanvasType defines what is the concrete type of the Canvas to be used. When
15
/// the recorder is enabled it will be swapped out in place of the Canvas at
16
/// compile-time.
17
#ifdef IMPELLER_TRACE_CANVAS
18
using
CanvasType
= CanvasRecorder<TraceSerializer>;
19
#else
20
using
CanvasType
=
Canvas
;
21
#endif
22
23
}
// namespace impeller
24
25
#endif // FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
trace_serializer.h
impeller::Canvas
Definition:
canvas.h:58
canvas_recorder.h
canvas.h
impeller
Definition:
aiks_blur_unittests.cc:20
impeller::CanvasType
Canvas CanvasType
Definition:
canvas_type.h:20
impeller
aiks
canvas_type.h
Generated by
1.8.17