Flutter Impeller
source_options.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 
6 
7 namespace impeller {
8 namespace compiler {
9 
11 
12 SourceOptions::SourceOptions(const std::string& file_name,
13  SourceType source_type)
14  : type(source_type == SourceType::kUnknown
15  ? SourceTypeFromFileName(file_name)
16  : source_type),
17  file_name(file_name) {}
18 
20 
21 } // namespace compiler
22 } // namespace impeller
GLenum type
SourceType SourceTypeFromFileName(const std::string &file_name)
Definition: types.cc:30