text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_print
import 'dart:async';
import 'dart:io';
import 'package:path/path.dart' as path;
import 'package:webkit_inspection_protoc... | devtools/packages/devtools_shared/lib/src/test/chrome.dart/0 | {
"file_path": "devtools/packages/devtools_shared/lib/src/test/chrome.dart",
"repo_id": "devtools",
"token_count": 2888
} | 171 |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:devtools_shared/devtools_shared.dart';
import 'package:test/test.dart';
void main() {
group('SemanticVersion', () {
test('parse', (... | devtools/packages/devtools_shared/test/semantic_version_test.dart/0 | {
"file_path": "devtools/packages/devtools_shared/test/semantic_version_test.dart",
"repo_id": "devtools",
"token_count": 2702
} | 172 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:devtools_app/devtools_app.dart';
import 'package:flutter/foundation.dart';
... | devtools/packages/devtools_test/lib/src/helpers/utils.dart/0 | {
"file_path": "devtools/packages/devtools_test/lib/src/helpers/utils.dart",
"repo_id": "devtools",
"token_count": 2406
} | 173 |
include: package:flutter_lints/flutter.yaml
| devtools/third_party/packages/codicon/analysis_options.yaml/0 | {
"file_path": "devtools/third_party/packages/codicon/analysis_options.yaml",
"repo_id": "devtools",
"token_count": 16
} | 174 |
#!/bin/bash -e
# Script to analyze the devtools repo for the flutter/tests registry
# https://github.com/flutter/tests
# This is executed as a pre-submit check for every PR in flutter/flutter
# At this point we can expect that mocks have already been generated
# from the setup steps in
# https://github.com/flutter/tes... | devtools/tool/flutter_customer_tests/analyze.sh/0 | {
"file_path": "devtools/tool/flutter_customer_tests/analyze.sh",
"repo_id": "devtools",
"token_count": 155
} | 175 |
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:args/command_runner.dart';
import 'package:io/io.dart';
import '../utils.dart';
class SyncCommand extends Command {
@override
String... | devtools/tool/lib/commands/sync.dart/0 | {
"file_path": "devtools/tool/lib/commands/sync.dart",
"repo_id": "devtools",
"token_count": 244
} | 176 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_ASSETS_ASSET_RESOLVER_H_
#define FLUTTER_ASSETS_ASSET_RESOLVER_H_
#include <string>
#include <vector>
#include <optional>
#include "flutt... | engine/assets/asset_resolver.h/0 | {
"file_path": "engine/assets/asset_resolver.h",
"repo_id": "engine",
"token_count": 1256
} | 177 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_root = "//flutter/third_party/imgui"
source_set("imgui") {
public = [
"$source_root/imgui.h",
"$source_root/imgui_internal.h",
"$source_... | engine/build/secondary/flutter/third_party/imgui/BUILD.gn/0 | {
"file_path": "engine/build/secondary/flutter/third_party/imgui/BUILD.gn",
"repo_id": "engine",
"token_count": 503
} | 178 |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
config("cpu_features_include") {
include_dirs = [ "ndk/sources/android/cpufeatures" ]
}
# This is the GN versi... | engine/build/secondary/third_party/android_tools/BUILD.gn/0 | {
"file_path": "engine/build/secondary/third_party/android_tools/BUILD.gn",
"repo_id": "engine",
"token_count": 215
} | 179 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("libcxx_config") {
defines = [ "_LIBCPP_DISABLE_AVAILABILITY=1" ]
include_dirs = [ "//flutter/build/secondary/third_party/libcxx/config" ]
}
confi... | engine/build/secondary/third_party/libcxx/BUILD.gn/0 | {
"file_path": "engine/build/secondary/third_party/libcxx/BUILD.gn",
"repo_id": "engine",
"token_count": 1295
} | 180 |
import subprocess
import os
gn_in = open("BUILD.input.gn", "rb")
gn_file = gn_in.read()
gn_in.close()
def get_files(path, exclude=[]):
cmd = ["git", "ls-files", "--"]
for ex in exclude:
cmd.append(":!%s" % ex)
cmd.append(path)
git_ls = subprocess.Popen(
cmd,
stdout=subprocess.... | engine/build/secondary/third_party/protobuf/gen.py/0 | {
"file_path": "engine/build/secondary/third_party/protobuf/gen.py",
"repo_id": "engine",
"token_count": 633
} | 181 |
{
"builds": [
{
"archives": [],
"drone_dimensions": [
"device_type=none",
"os=Linux"
],
"gclient_variables": {
"use_rbe": true
},
"gn": [
"--android",
"--an... | engine/ci/builders/linux_clang_tidy.json/0 | {
"file_path": "engine/ci/builders/linux_clang_tidy.json",
"repo_id": "engine",
"token_count": 4513
} | 182 |
{
"builds": [
{
"archives": [
{
"base_path": "out/android_profile/zip_archives/",
"type": "gcs",
"include_paths": [
"out/android_profile/zip_archives/android-arm-profile/windows-x64.zip"
... | engine/ci/builders/windows_android_aot_engine.json/0 | {
"file_path": "engine/ci/builders/windows_android_aot_engine.json",
"repo_id": "engine",
"token_count": 4472
} | 183 |
Signature: 536cb7e12a84d02e71ba0b1ac3859707
====================================================================================================
LIBRARY: etc1
LIBRARY: vulkan
ORIGIN: Apache-2.0 referenced by ../../../flutter/third_party/skia/include/third_party/vulkan/vulkan/vk_platform.h
ORIGIN: Apache-2.0 referenced... | engine/ci/licenses_golden/licenses_skia/0 | {
"file_path": "engine/ci/licenses_golden/licenses_skia",
"repo_id": "engine",
"token_count": 311298
} | 184 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/benchmarking/benchmarking.h"
#include "flutter/display_list/testing/dl_test_snippets.h"
namespace flutter {
DlOpReceiver& DisplayListBu... | engine/display_list/benchmarking/dl_builder_benchmarks.cc/0 | {
"file_path": "engine/display_list/benchmarking/dl_builder_benchmarks.cc",
"repo_id": "engine",
"token_count": 4497
} | 185 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_DISPLAY_LIST_DL_BLEND_MODE_H_
#define FLUTTER_DISPLAY_LIST_DL_BLEND_MODE_H_
namespace flutter {
/// A enum define the blend mode.
/// Ble... | engine/display_list/dl_blend_mode.h/0 | {
"file_path": "engine/display_list/dl_blend_mode.h",
"repo_id": "engine",
"token_count": 1130
} | 186 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_DISPLAY_LIST_DL_SAMPLING_OPTIONS_H_
#define FLUTTER_DISPLAY_LIST_DL_SAMPLING_OPTIONS_H_
namespace flutter {
enum class DlFilterMode {
k... | engine/display_list/dl_sampling_options.h/0 | {
"file_path": "engine/display_list/dl_sampling_options.h",
"repo_id": "engine",
"token_count": 235
} | 187 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/effects/dl_mask_filter.h"
#include "flutter/display_list/testing/dl_test_equality.h"
#include "flutter/display_list/utils/dl... | engine/display_list/effects/dl_mask_filter_unittests.cc/0 | {
"file_path": "engine/display_list/effects/dl_mask_filter_unittests.cc",
"repo_id": "engine",
"token_count": 2008
} | 188 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/skia/dl_sk_canvas.h"
#include "flutter/display_list/skia/dl_sk_conversions.h"
#include "flutter/display_list/skia/dl_sk_dis... | engine/display_list/skia/dl_sk_canvas.cc/0 | {
"file_path": "engine/display_list/skia/dl_sk_canvas.cc",
"repo_id": "engine",
"token_count": 5695
} | 189 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/testing/dl_test_surface_gl.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/S... | engine/display_list/testing/dl_test_surface_gl.cc/0 | {
"file_path": "engine/display_list/testing/dl_test_surface_gl.cc",
"repo_id": "engine",
"token_count": 702
} | 190 |
# Doxyfile 1.9.4
# This file is a template for the Doxyfile used to generate Flutter
# documentation for the Engine code using Doxygen. Fields with
# @@FIELD_NAME@@ as the value will be substituted by the
# tools/gen_docs.sh script to contain the appropriate values for a
# specific documentation section configured in ... | engine/docs/Doxyfile.template/0 | {
"file_path": "engine/docs/Doxyfile.template",
"repo_id": "engine",
"token_count": 36155
} | 191 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FLOW_DIFF_CONTEXT_H_
#define FLUTTER_FLOW_DIFF_CONTEXT_H_
#include <functional>
#include <map>
#include <optional>
#include <vector>
#incl... | engine/flow/diff_context.h/0 | {
"file_path": "engine/flow/diff_context.h",
"repo_id": "engine",
"token_count": 3061
} | 192 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/flow/layers/backdrop_filter_layer.h"
#include "flutter/flow/layers/clip_rect_layer.h"
#include "flutter/flow/layers/clip_rect_layer.h"
#... | engine/flow/layers/backdrop_filter_layer_unittests.cc/0 | {
"file_path": "engine/flow/layers/backdrop_filter_layer_unittests.cc",
"repo_id": "engine",
"token_count": 9433
} | 193 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/display_list/display_list.h"
#include "flutter/display_list/dl_color.h"
#include "flutter/display_list/dl_paint.h"
#include "flutter/flow... | engine/flow/layers/color_filter_layer_unittests.cc/0 | {
"file_path": "engine/flow/layers/color_filter_layer_unittests.cc",
"repo_id": "engine",
"token_count": 7373
} | 194 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/flow/layers/layer_state_stack.h"
#include "flutter/display_list/utils/dl_matrix_clip_tracker.h"
#include "flutter/flow/layers/layer.h"
#... | engine/flow/layers/layer_state_stack.cc/0 | {
"file_path": "engine/flow/layers/layer_state_stack.cc",
"repo_id": "engine",
"token_count": 9449
} | 195 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FLOW_LAYERS_PLATFORM_VIEW_LAYER_H_
#define FLUTTER_FLOW_LAYERS_PLATFORM_VIEW_LAYER_H_
#include "flutter/display_list/skia/dl_sk_canvas.h"
... | engine/flow/layers/platform_view_layer.h/0 | {
"file_path": "engine/flow/layers/platform_view_layer.h",
"repo_id": "engine",
"token_count": 338
} | 196 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/flow/raster_cache.h"
#include <cstddef>
#include <vector>
#include "flutter/common/constants.h"
#include "flutter/display_list/skia/dl_... | engine/flow/raster_cache.cc/0 | {
"file_path": "engine/flow/raster_cache.cc",
"repo_id": "engine",
"token_count": 4361
} | 197 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FLOW_STOPWATCH_SK_H_
#define FLUTTER_FLOW_STOPWATCH_SK_H_
#include "flow/stopwatch.h"
#include "include/core/SkSurface.h"
namespace flutt... | engine/flow/stopwatch_sk.h/0 | {
"file_path": "engine/flow/stopwatch_sk.h",
"repo_id": "engine",
"token_count": 408
} | 198 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/flow/testing/mock_layer.h"
#include "flutter/flow/testing/layer_test.h"
#include "flutter/fml/macros.h"
#include "flutter/testing/mock_c... | engine/flow/testing/mock_layer_unittests.cc/0 | {
"file_path": "engine/flow/testing/mock_layer_unittests.cc",
"repo_id": "engine",
"token_count": 1894
} | 199 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/flutter_vma/flutter_skia_vma.h"
#include "flutter/fml/memory/ref_ptr.h"
#include "flutter/vulkan/procs/vulkan_handle.h"
#include "flutte... | engine/flutter_vma/flutter_skia_vma.cc/0 | {
"file_path": "engine/flutter_vma/flutter_skia_vma.cc",
"repo_id": "engine",
"token_count": 3961
} | 200 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FML_CLOSURE_H_
#define FLUTTER_FML_CLOSURE_H_
#include <functional>
#include "flutter/fml/macros.h"
namespace fml {
using closure = std... | engine/fml/closure.h/0 | {
"file_path": "engine/fml/closure.h",
"repo_id": "engine",
"token_count": 764
} | 201 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FML_EINTR_WRAPPER_H_
#define FLUTTER_FML_EINTR_WRAPPER_H_
#include <errno.h>
#include "flutter/fml/build_config.h"
#if defined(FML_OS_WI... | engine/fml/eintr_wrapper.h/0 | {
"file_path": "engine/fml/eintr_wrapper.h",
"repo_id": "engine",
"token_count": 1000
} | 202 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FML_LOG_SETTINGS_H_
#define FLUTTER_FML_LOG_SETTINGS_H_
#include <string>
#include "flutter/fml/log_level.h"
namespace fml {
// Setting... | engine/fml/log_settings.h/0 | {
"file_path": "engine/fml/log_settings.h",
"repo_id": "engine",
"token_count": 408
} | 203 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FML_MEMORY_REF_PTR_INTERNAL_H_
#define FLUTTER_FML_MEMORY_REF_PTR_INTERNAL_H_
#include <utility>
#include "flutter/fml/macros.h"
namespa... | engine/fml/memory/ref_ptr_internal.h/0 | {
"file_path": "engine/fml/memory/ref_ptr_internal.h",
"repo_id": "engine",
"token_count": 372
} | 204 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/message_loop_task_queues.h"
#include <cassert>
#include <string>
#include <thread>
#include <vector>
#include "flutter/benchmarking... | engine/fml/message_loop_task_queues_benchmark.cc/0 | {
"file_path": "engine/fml/message_loop_task_queues_benchmark.cc",
"repo_id": "engine",
"token_count": 842
} | 205 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/platform/android/paths_android.h"
#include "flutter/fml/file.h"
namespace fml {
namespace paths {
std::pair<bool, std::string> Get... | engine/fml/platform/android/paths_android.cc/0 | {
"file_path": "engine/fml/platform/android/paths_android.cc",
"repo_id": "engine",
"token_count": 246
} | 206 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FML_PLATFORM_DARWIN_SCOPED_NSAUTORELEASE_POOL_H_
#define FLUTTER_FML_PLATFORM_DARWIN_SCOPED_NSAUTORELEASE_POOL_H_
#include "flutter/fml/ma... | engine/fml/platform/darwin/scoped_nsautorelease_pool.h/0 | {
"file_path": "engine/fml/platform/darwin/scoped_nsautorelease_pool.h",
"repo_id": "engine",
"token_count": 264
} | 207 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fidl/fuchsia.diagnostics/cpp/fidl.h>
#include <fidl/fuchsia.logger/cpp/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/defa... | engine/fml/platform/fuchsia/log_interest_listener_unittests.cc/0 | {
"file_path": "engine/fml/platform/fuchsia/log_interest_listener_unittests.cc",
"repo_id": "engine",
"token_count": 1794
} | 208 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/native_library.h"
#include <dlfcn.h>
#include <fcntl.h>
namespace fml {
NativeLibrary::NativeLibrary(const char* path) {
::dlerr... | engine/fml/platform/posix/native_library_posix.cc/0 | {
"file_path": "engine/fml/platform/posix/native_library_posix.cc",
"repo_id": "engine",
"token_count": 627
} | 209 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_FML_STRING_CONVERSION_H_
#define FLUTTER_FML_STRING_CONVERSION_H_
#include <string>
#include <vector>
namespace fml {
// Returns a strin... | engine/fml/string_conversion.h/0 | {
"file_path": "engine/fml/string_conversion.h",
"repo_id": "engine",
"token_count": 245
} | 210 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Provides classes with functionality analogous to (but much more limited than)
// Chromium's |base::WaitableEvent|, which in turn provides functionality
... | engine/fml/synchronization/waitable_event.h/0 | {
"file_path": "engine/fml/synchronization/waitable_event.h",
"repo_id": "engine",
"token_count": 1413
} | 211 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/time/time_point.h"
#include <atomic>
#include "flutter/fml/build_config.h"
#include "flutter/fml/logging.h"
#if defined(OS_FUCHSIA... | engine/fml/time/time_point.cc/0 | {
"file_path": "engine/fml/time/time_point.cc",
"repo_id": "engine",
"token_count": 507
} | 212 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "impeller/aiks/canvas.h"
#include "impeller/entity/contents/filters/gaussian_blur_filter_conten... | engine/impeller/aiks/aiks_blur_unittests.cc/0 | {
"file_path": "engine/impeller/aiks/aiks_blur_unittests.cc",
"repo_id": "engine",
"token_count": 20583
} | 213 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
#define FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
#include "impeller/aiks/canvas.h"
#include "impeller/aiks/canvas... | engine/impeller/aiks/canvas_type.h/0 | {
"file_path": "engine/impeller/aiks/canvas_type.h",
"repo_id": "engine",
"token_count": 279
} | 214 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_BASE_CONFIG_H_
#define FLUTTER_IMPELLER_BASE_CONFIG_H_
#include <cstdlib>
#include "flutter/fml/logging.h"
#if defined(__GNUC__... | engine/impeller/base/config.h/0 | {
"file_path": "engine/impeller/base/config.h",
"repo_id": "engine",
"token_count": 569
} | 215 |
# The Impeller Shader Compiler & Reflector
Host side tooling that consumes [GLSL 4.60 (Core
Profile)](https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.4.60.pdf)
shaders and generates libraries suitable for consumption by an Impeller backend.
Along with said libraries, the reflector generates code and meta-... | engine/impeller/compiler/README.md/0 | {
"file_path": "engine/impeller/compiler/README.md",
"repo_id": "engine",
"token_count": 108
} | 216 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FLUTTER_NOLINT: https://github.com/flutter/flutter/issues/105732
#include "impeller/compiler/reflector.h"
#include <atomic>
#include <optional>
#inclu... | engine/impeller/compiler/reflector.cc/0 | {
"file_path": "engine/impeller/compiler/reflector.cc",
"repo_id": "engine",
"token_count": 23804
} | 217 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONSTANTS_GLSL_
#define CONSTANTS_GLSL_
#include <impeller/types.glsl>
const float kEhCloseEnough = 0.000001;
// 1/1024.
const float16_t kEhClos... | engine/impeller/compiler/shader_lib/impeller/constants.glsl/0 | {
"file_path": "engine/impeller/compiler/shader_lib/impeller/constants.glsl",
"repo_id": "engine",
"token_count": 334
} | 218 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/compiler/spirv_sksl.h"
#include "impeller/compiler/uniform_sorter.h"
using namespace spv;
using namespace SPIRV_CROSS_NAMESPACE;
names... | engine/impeller/compiler/spirv_sksl.cc/0 | {
"file_path": "engine/impeller/compiler/spirv_sksl.cc",
"repo_id": "engine",
"token_count": 5987
} | 219 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_
#define FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_
#include <memory>
#include "impeller/core/buffer_view.h... | engine/impeller/core/resource_binder.h/0 | {
"file_path": "engine/impeller/core/resource_binder.h",
"repo_id": "engine",
"token_count": 671
} | 220 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/display_list/dl_dispatcher.h"
#include <algorithm>
#include <cstring>
#include <memory>
#include <optional>
#include <utility>
#include... | engine/impeller/display_list/dl_dispatcher.cc/0 | {
"file_path": "engine/impeller/display_list/dl_dispatcher.cc",
"repo_id": "engine",
"token_count": 17730
} | 221 |
# Android Vulkan Validation Layers
If you want to run Vulkan Validation Layers with a custom engine build you need
to add the `--enable-vulkan-validation-layers` to the `gn` invocation to make
sure the layers are built and injected into the Flutter jar.
Example:
```sh
flutter/tools/gn \
--runtime-mode=debug \
--... | engine/impeller/docs/android_validation_layers.md/0 | {
"file_path": "engine/impeller/docs/android_validation_layers.md",
"repo_id": "engine",
"token_count": 216
} | 222 |
# Frequently Asked Questions
* How do I enable Impeller to try it out myself?
* See the instructions in the README on how to [try Impeller in
Flutter](https://github.com/flutter/engine/tree/main/impeller#try-impeller-in-flutter).
* Support on some platforms is further along than on others. The current
prio... | engine/impeller/docs/faq.md/0 | {
"file_path": "engine/impeller/docs/faq.md",
"repo_id": "engine",
"token_count": 1699
} | 223 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_CHECKERBOARD_CONTENTS_H_
#define FLUTTER_IMPELLER_ENTITY_CONTENTS_CHECKERBOARD_CONTENTS_H_
#include "impeller/ent... | engine/impeller/entity/contents/checkerboard_contents.h/0 | {
"file_path": "engine/impeller/entity/contents/checkerboard_contents.h",
"repo_id": "engine",
"token_count": 417
} | 224 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BORDER_MASK_BLUR_FILTER_CONTENTS_H_
#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BORDER_MASK_BLUR_FILT... | engine/impeller/entity/contents/filters/border_mask_blur_filter_contents.h/0 | {
"file_path": "engine/impeller/entity/contents/filters/border_mask_blur_filter_contents.h",
"repo_id": "engine",
"token_count": 661
} | 225 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "flutter/testing/testing.h"
#include "gtest/gtest.h"
#include "impeller/entity/contents/filters/color_filter_contents.h"
#includ... | engine/impeller/entity/contents/filters/inputs/filter_input_unittests.cc/0 | {
"file_path": "engine/impeller/entity/contents/filters/inputs/filter_input_unittests.cc",
"repo_id": "engine",
"token_count": 885
} | 226 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_
#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_... | engine/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h/0 | {
"file_path": "engine/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h",
"repo_id": "engine",
"token_count": 485
} | 227 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/entity/contents/solid_rrect_blur_contents.h"
#include <optional>
#include "impeller/entity/contents/content_context.h"
#include "impell... | engine/impeller/entity/contents/solid_rrect_blur_contents.cc/0 | {
"file_path": "engine/impeller/entity/contents/solid_rrect_blur_contents.cc",
"repo_id": "engine",
"token_count": 1718
} | 228 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_VERTICES_CONTENTS_H_
#define FLUTTER_IMPELLER_ENTITY_CONTENTS_VERTICES_CONTENTS_H_
#include <functional>
#include... | engine/impeller/entity/contents/vertices_contents.h/0 | {
"file_path": "engine/impeller/entity/contents/vertices_contents.h",
"repo_id": "engine",
"token_count": 1010
} | 229 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/entity/geometry/cover_geometry.h"
#include "impeller/renderer/render_pass.h"
namespace impeller {
CoverGeometry::CoverGeometry() = de... | engine/impeller/entity/geometry/cover_geometry.cc/0 | {
"file_path": "engine/impeller/entity/geometry/cover_geometry.cc",
"repo_id": "engine",
"token_count": 890
} | 230 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_ROUND_RECT_GEOMETRY_H_
#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_ROUND_RECT_GEOMETRY_H_
#include "impeller/entity/... | engine/impeller/entity/geometry/round_rect_geometry.h/0 | {
"file_path": "engine/impeller/entity/geometry/round_rect_geometry.h",
"repo_id": "engine",
"token_count": 739
} | 231 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <impeller/conversions.glsl>
#include <impeller/types.glsl>
// Warning: if any of the constant values or layouts are changed in this
// file, then... | engine/impeller/entity/shaders/blending/framebuffer_blend.vert/0 | {
"file_path": "engine/impeller/entity/shaders/blending/framebuffer_blend.vert",
"repo_id": "engine",
"token_count": 295
} | 232 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <impeller/transform.glsl>
#include <impeller/types.glsl>
uniform FrameInfo {
mat4 mvp;
float depth;
}
frame_info;
in vec2 position;
in vec4 ... | engine/impeller/entity/shaders/position_color.vert/0 | {
"file_path": "engine/impeller/entity/shaders/position_color.vert",
"repo_id": "engine",
"token_count": 192
} | 233 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
uniform FrameInfo {
mat4 mvp;
}
frame_info;
in vec2 position;
out vec2 v_position;
void main() {
gl_Position = frame_info.mvp * vec4(position, 0.0, ... | engine/impeller/fixtures/inactive_uniforms.vert/0 | {
"file_path": "engine/impeller/fixtures/inactive_uniforms.vert",
"repo_id": "engine",
"token_count": 120
} | 234 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/benchmarking/benchmarking.h"
#include "flutter/impeller/entity/solid_fill.vert.h"
#include "flutter/impeller/entity/texture_fill.vert.h"... | engine/impeller/geometry/geometry_benchmarks.cc/0 | {
"file_path": "engine/impeller/geometry/geometry_benchmarks.cc",
"repo_id": "engine",
"token_count": 12342
} | 235 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gtest/gtest.h"
#include "flutter/testing/testing.h"
#include "impeller/geometry/geometry_asserts.h"
#include "impeller/geometry/path.h"
#include... | engine/impeller/geometry/path_unittests.cc/0 | {
"file_path": "engine/impeller/geometry/path_unittests.cc",
"repo_id": "engine",
"token_count": 10500
} | 236 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_GEOMETRY_SIZE_H_
#define FLUTTER_IMPELLER_GEOMETRY_SIZE_H_
#include <algorithm>
#include <cmath>
#include <limits>
#include <ostr... | engine/impeller/geometry/size.h/0 | {
"file_path": "engine/impeller/geometry/size.h",
"repo_id": "engine",
"token_count": 1553
} | 237 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gtest/gtest.h"
#include <sstream>
#include "flutter/fml/platform/darwin/scoped_nsautorelease_pool.h"
#include "impeller/aiks/aiks_context.h"
#i... | engine/impeller/golden_tests/golden_tests.cc/0 | {
"file_path": "engine/impeller/golden_tests/golden_tests.cc",
"repo_id": "engine",
"token_count": 989
} | 238 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_PLAYGROUND_BACKEND_METAL_PLAYGROUND_IMPL_MTL_H_
#define FLUTTER_IMPELLER_PLAYGROUND_BACKEND_METAL_PLAYGROUND_IMPL_MTL_H_
#include... | engine/impeller/playground/backend/metal/playground_impl_mtl.h/0 | {
"file_path": "engine/impeller/playground/backend/metal/playground_impl_mtl.h",
"repo_id": "engine",
"token_count": 599
} | 239 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//flutter/impeller/tools/impeller.gni")
impeller_shaders("imgui_shaders") {
name = "imgui"
# Not analyzing because they are not performance crit... | engine/impeller/playground/imgui/BUILD.gn/0 | {
"file_path": "engine/impeller/playground/imgui/BUILD.gn",
"repo_id": "engine",
"token_count": 284
} | 240 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../tools/impeller.gni")
group("backend") {
public_deps = []
if (impeller_enable_metal) {
assert(is_mac || is_ios)
public_deps += [ "m... | engine/impeller/renderer/backend/BUILD.gn/0 | {
"file_path": "engine/impeller/renderer/backend/BUILD.gn",
"repo_id": "engine",
"token_count": 227
} | 241 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/backend/gles/description_gles.h"
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <sstream>
#include <string... | engine/impeller/renderer/backend/gles/description_gles.cc/0 | {
"file_path": "engine/impeller/renderer/backend/gles/description_gles.cc",
"repo_id": "engine",
"token_count": 1928
} | 242 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PROC_TABLE_GLES_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PROC_TABLE_GLES_H_
#include <functional>
... | engine/impeller/renderer/backend/gles/proc_table_gles.h/0 | {
"file_path": "engine/impeller/renderer/backend/gles/proc_table_gles.h",
"repo_id": "engine",
"token_count": 5227
} | 243 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/testing/testing.h" // IWYU pragma: keep
#include "gtest/gtest.h"
#include "impeller/renderer/backend/gles/proc_table_gles.h"
#include "i... | engine/impeller/renderer/backend/gles/test/capabilities_unittests.cc/0 | {
"file_path": "engine/impeller/renderer/backend/gles/test/capabilities_unittests.cc",
"repo_id": "engine",
"token_count": 1002
} | 244 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/backend/metal/blit_pass_mtl.h"
#include <Metal/Metal.h>
#include <memory>
#include <variant>
#include "flutter/fml/closure.h"
... | engine/impeller/renderer/backend/metal/blit_pass_mtl.mm/0 | {
"file_path": "engine/impeller/renderer/backend/metal/blit_pass_mtl.mm",
"repo_id": "engine",
"token_count": 1653
} | 245 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <Metal/Metal.h>
#include "fml/trace_event.h"
#include "impeller/renderer/backend/metal/context_mtl.h"
#include "impeller/renderer/backend/metal/fo... | engine/impeller/renderer/backend/metal/gpu_tracer_mtl.mm/0 | {
"file_path": "engine/impeller/renderer/backend/metal/gpu_tracer_mtl.mm",
"repo_id": "engine",
"token_count": 819
} | 246 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/backend/metal/shader_function_mtl.h"
namespace impeller {
ShaderFunctionMTL::ShaderFunctionMTL(UniqueID parent_library_id,
... | engine/impeller/renderer/backend/metal/shader_function_mtl.mm/0 | {
"file_path": "engine/impeller/renderer/backend/metal/shader_function_mtl.mm",
"repo_id": "engine",
"token_count": 742
} | 247 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/backend/vulkan/android/ahb_texture_source_vk.h"
#include "impeller/renderer/backend/vulkan/allocator_vk.h"
#include "impeller/... | engine/impeller/renderer/backend/vulkan/android/ahb_texture_source_vk.cc/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/android/ahb_texture_source_vk.cc",
"repo_id": "engine",
"token_count": 5725
} | 248 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/backend/vulkan/command_pool_vk.h"
#include <memory>
#include <optional>
#include <utility>
#include "impeller/renderer/backen... | engine/impeller/renderer/backend/vulkan/command_pool_vk.cc/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/command_pool_vk.cc",
"repo_id": "engine",
"token_count": 3364
} | 249 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/testing/testing.h" // IWYU pragma: keep.
#include "fml/synchronization/waitable_event.h"
#include "impeller/renderer/backend/vulkan/desc... | engine/impeller/renderer/backend/vulkan/descriptor_pool_vk_unittests.cc/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/descriptor_pool_vk_unittests.cc",
"repo_id": "engine",
"token_count": 1770
} | 250 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_
#include "flut... | engine/impeller/renderer/backend/vulkan/pipeline_cache_vk.h/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/pipeline_cache_vk.h",
"repo_id": "engine",
"token_count": 652
} | 251 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_LIBRARY_VK_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_LIBRARY_VK_H_
#include "im... | engine/impeller/renderer/backend/vulkan/sampler_library_vk.h/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/sampler_library_vk.h",
"repo_id": "engine",
"token_count": 456
} | 252 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_KHR_KHR_SWAPCHAIN_IMAGE_VK_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_KHR_KHR... | engine/impeller/renderer/backend/vulkan/swapchain/khr/khr_swapchain_image_vk.h/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/swapchain/khr/khr_swapchain_image_vk.h",
"repo_id": "engine",
"token_count": 734
} | 253 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/backend/vulkan/vertex_descriptor_vk.h"
#include <cstdint>
namespace impeller {
vk::Format ToVertexDescriptorFormat(const Sha... | engine/impeller/renderer/backend/vulkan/vertex_descriptor_vk.cc/0 | {
"file_path": "engine/impeller/renderer/backend/vulkan/vertex_descriptor_vk.cc",
"repo_id": "engine",
"token_count": 2525
} | 254 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/testing/testing.h"
#include "impeller/renderer/capabilities.h"
#include "gtest/gtest.h"
namespace impeller {
namespace testing {
#defi... | engine/impeller/renderer/capabilities_unittests.cc/0 | {
"file_path": "engine/impeller/renderer/capabilities_unittests.cc",
"repo_id": "engine",
"token_count": 1189
} | 255 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/synchronization/waitable_event.h"
#include "flutter/testing/testing.h"
#include "gmock/gmock.h"
#include "impeller/core/host_buffer.h... | engine/impeller/renderer/compute_unittests.cc/0 | {
"file_path": "engine/impeller/renderer/compute_unittests.cc",
"repo_id": "engine",
"token_count": 8003
} | 256 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
layout(local_size_x_id = 0) in;
layout(std430) buffer;
#include <impeller/prefix_sum.glsl>
#define BLOCK_SIZE 1024
layout(binding = 0) readonly buffer I... | engine/impeller/renderer/prefix_sum_test.comp/0 | {
"file_path": "engine/impeller/renderer/prefix_sum_test.comp",
"repo_id": "engine",
"token_count": 324
} | 257 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_
#define FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_
#include <future>
#include <memory>
#include <stri... | engine/impeller/renderer/shader_library.h/0 | {
"file_path": "engine/impeller/renderer/shader_library.h",
"repo_id": "engine",
"token_count": 506
} | 258 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
#define FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
#include <memory>
#include <st... | engine/impeller/scene/animation/property_resolver.h/0 | {
"file_path": "engine/impeller/scene/animation/property_resolver.h",
"repo_id": "engine",
"token_count": 1343
} | 259 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/scene/importer/vertices_builder.h"
#include <cstdint>
#include <cstring>
#include <limits>
#include <memory>
#include <type_traits>
#i... | engine/impeller/scene/importer/vertices_builder.cc/0 | {
"file_path": "engine/impeller/scene/importer/vertices_builder.cc",
"repo_id": "engine",
"token_count": 4055
} | 260 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//flutter/impeller/tools/impeller.gni")
impeller_shaders("shaders") {
name = "scene"
if (impeller_enable_vulkan) {
vulkan_language_version =... | engine/impeller/scene/shaders/BUILD.gn/0 | {
"file_path": "engine/impeller/scene/shaders/BUILD.gn",
"repo_id": "engine",
"token_count": 153
} | 261 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_TYPES_H_
#define FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_TYPES_H_
namespace impeller {
enum... | engine/impeller/shader_archive/shader_archive_types.h/0 | {
"file_path": "engine/impeller/shader_archive/shader_archive_types.h",
"repo_id": "engine",
"token_count": 218
} | 262 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/impeller/toolkit/android/choreographer.h"
#include "flutter/fml/message_loop.h"
namespace impeller::android {
Choreographer& Choreogra... | engine/impeller/toolkit/android/choreographer.cc/0 | {
"file_path": "engine/impeller/toolkit/android/choreographer.cc",
"repo_id": "engine",
"token_count": 886
} | 263 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/toolkit/egl/context.h"
#include "impeller/toolkit/egl/surface.h"
namespace impeller {
namespace egl {
Context::Context(EGLDisplay dis... | engine/impeller/toolkit/egl/context.cc/0 | {
"file_path": "engine/impeller/toolkit/egl/context.cc",
"repo_id": "engine",
"token_count": 1451
} | 264 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import os
def contains_license_block(source_file):
# This check is somewhat easier than in the engine because all sources need to
# have... | engine/impeller/tools/check_licenses.py/0 | {
"file_path": "engine/impeller/tools/check_licenses.py",
"repo_id": "engine",
"token_count": 729
} | 265 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_
#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_... | engine/impeller/typographer/backends/skia/typographer_context_skia.h/0 | {
"file_path": "engine/impeller/typographer/backends/skia/typographer_context_skia.h",
"repo_id": "engine",
"token_count": 430
} | 266 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/typographer/glyph_atlas.h"
#include <numeric>
#include <utility>
namespace impeller {
GlyphAtlasContext::GlyphAtlasContext()
: at... | engine/impeller/typographer/glyph_atlas.cc/0 | {
"file_path": "engine/impeller/typographer/glyph_atlas.cc",
"repo_id": "engine",
"token_count": 1431
} | 267 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
part of flutter_gpu;
/// A reference to a byte range within a GPU-resident [Buffer].
class BufferView {
/// ... | engine/lib/gpu/lib/src/buffer.dart/0 | {
"file_path": "engine/lib/gpu/lib/src/buffer.dart",
"repo_id": "engine",
"token_count": 2117
} | 268 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_LIB_GPU_SHADER_H_
#define FLUTTER_LIB_GPU_SHADER_H_
#include <algorithm>
#include <memory>
#include <string>
#include "flutter/lib/gpu/co... | engine/lib/gpu/shader.h/0 | {
"file_path": "engine/lib/gpu/shader.h",
"repo_id": "engine",
"token_count": 1019
} | 269 |
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//flutter/common/config.gni")
import("//flutter/impeller/tools/impeller.gni")
import("//flutter/shell/config.gni")
import("//flutter/testing/testing.g... | engine/lib/ui/BUILD.gn/0 | {
"file_path": "engine/lib/ui/BUILD.gn",
"repo_id": "engine",
"token_count": 4252
} | 270 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.