Flutter Engine
The Flutter Engine
|
#include "tools/viewer/Viewer.h"
#include "bench/GpuTools.h"
#include "gm/gm.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkColorType.h"
#include "include/core/SkData.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkGraphics.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPicture.h"
#include "include/core/SkPictureRecorder.h"
#include "include/core/SkRect.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkSerialProcs.h"
#include "include/core/SkStream.h"
#include "include/core/SkSurface.h"
#include "include/core/SkSurfaceProps.h"
#include "include/core/SkTextBlob.h"
#include "include/encode/SkPngEncoder.h"
#include "include/gpu/GrDirectContext.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkTPin.h"
#include "include/private/base/SkTo.h"
#include "include/utils/SkPaintFilterCanvas.h"
#include "src/base/SkBase64.h"
#include "src/base/SkTLazy.h"
#include "src/base/SkTSort.h"
#include "src/base/SkUTF.h"
#include "src/core/SkAutoPixmapStorage.h"
#include "src/core/SkLRUCache.h"
#include "src/core/SkMD5.h"
#include "src/core/SkOSFile.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkScan.h"
#include "src/core/SkStringUtils.h"
#include "src/core/SkTaskGroup.h"
#include "src/core/SkTextBlobPriv.h"
#include "src/image/SkImage_Base.h"
#include "src/sksl/SkSLCompiler.h"
#include "src/sksl/SkSLString.h"
#include "src/text/GlyphRun.h"
#include "src/utils/SkJSONWriter.h"
#include "src/utils/SkOSPath.h"
#include "src/utils/SkShaderUtils.h"
#include "tools/CodecUtils.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "tools/RuntimeBlendUtils.h"
#include "tools/SkMetaData.h"
#include "tools/flags/CommandLineFlags.h"
#include "tools/flags/CommonFlags.h"
#include "tools/skui/InputState.h"
#include "tools/skui/Key.h"
#include "tools/skui/ModifierKey.h"
#include "tools/trace/EventTracingPriv.h"
#include "tools/viewer/BisectSlide.h"
#include "tools/viewer/GMSlide.h"
#include "tools/viewer/ImageSlide.h"
#include "tools/viewer/MSKPSlide.h"
#include "tools/viewer/SKPSlide.h"
#include "tools/viewer/SkSLDebuggerSlide.h"
#include "tools/viewer/SkSLSlide.h"
#include "tools/viewer/Slide.h"
#include "tools/viewer/SlideDir.h"
#include <algorithm>
#include <cfloat>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <initializer_list>
#include <map>
#include <memory>
#include <optional>
#include <ratio>
#include <regex>
#include <tuple>
#include <utility>
#include <vector>
#include "imgui.h"
#include "misc/cpp/imgui_stdlib.h"
Go to the source code of this file.
Classes | |
class | CapturingShaderErrorHandler |
struct | NamedPrimaries |
class | NullSlide |
struct | SkPaintTitleUpdater |
class | OveridePaintFilterCanvas |
Macros | |
#define | GL_BACKEND_STR |
#define | VK_BACKEND_STR |
#define | MTL_BACKEND_STR |
#define | D3D_BACKEND_STR |
#define | DAWN_BACKEND_STR |
#define | BACKENDS_STR_EVALUATOR(sw, gl, vk, mtl, d3d, dawn) sw gl vk mtl d3d dawn |
#define | BACKENDS_STR |
#define | PATH_PREFIX "" |
#define | MAX_ZOOM_LEVEL 8.0f |
#define | MIN_ZOOM_LEVEL -8.0f |
Typedefs | |
using | OverrideFlag = SkSL::Compiler::OverrideFlag |
Functions | |
static | DEFINE_string (slide, "", "Start on this sample.") |
static | DEFINE_bool (list, false, "List samples?") |
static | DEFINE_string2 (backend, b, "sw", "Backend to use. Allowed values are " BACKENDS_STR ".") |
static | DEFINE_int (msaa, 1, "Number of subpixel samples. 0 for no HW antialiasing.") |
static | DEFINE_bool (dmsaa, false, "Use internal MSAA to render to non-MSAA surfaces?") |
static | DEFINE_string (bisect, "", "Path to a .skp or .svg file to bisect.") |
static | DEFINE_string2 (file, f, "", "Open a single file for viewing.") |
static | DEFINE_string2 (match, m, nullptr, "[~][^]substring[$] [...] of name to run.\n" "Multiple matches may be separated by spaces.\n" "~ causes a matching name to always be skipped\n" "^ requires the start of the name to match\n" "$ requires the end of the name to match\n" "^ and $ requires an exact match\n" "If a name does not match any list entry,\n" "it is skipped unless some list entry starts with ~") |
static | DEFINE_string (jpgs, PATH_PREFIX "jpgs", "Directory to read jpgs from.") |
static | DEFINE_string (jxls, PATH_PREFIX "jxls", "Directory to read jxls from.") |
static | DEFINE_string (skps, PATH_PREFIX "skps", "Directory to read skps from.") |
static | DEFINE_string (mskps, PATH_PREFIX "mskps", "Directory to read mskps from.") |
static | DEFINE_string (lotties, PATH_PREFIX "lotties", "Directory to read (Bodymovin) jsons from.") |
static | DEFINE_string (svgs, "", "Directory to read SVGs from, or a single SVG file.") |
static | DEFINE_string (rives, "", "Directory to read RIVs from, or a single .riv file.") |
static | DEFINE_int_2 (threads, j, -1, "Run threadsafe tests on a threadpool with this many extra threads, " "defaulting to one extra thread per core.") |
static | DEFINE_bool (redraw, false, "Toggle continuous redraw.") |
static | DEFINE_bool (offscreen, false, "Force rendering to an offscreen surface.") |
static | DEFINE_bool (stats, false, "Display stats overlay on startup.") |
static | DEFINE_bool (createProtected, false, "Create a protected native backend (e.g., in EGL).") |
static bool | is_graphite_backend_type (sk_app::Window::BackendType type) |
const char * | get_backend_string (sk_app::Window::BackendType type) |
static sk_app::Window::BackendType | get_backend_type (const char *str) |
static bool | primaries_equal (const SkColorSpacePrimaries &a, const SkColorSpacePrimaries &b) |
static Window::BackendType | backend_type_for_window (Window::BackendType backendType) |
static sk_sp< SkData > | data_from_file (FILE *fp) |
static sk_sp< SkData > | base64_string_to_data (const std::string &s) |
static std::vector< sk_sp< SkImage > > | find_data_uri_images (sk_sp< SkData > data) |
static SkSerialProcs | serial_procs_using_png () |
static void | ImGui_Primaries (SkColorSpacePrimaries *primaries, SkPaint *gamutPaint) |
static bool | ImGui_DragLocation (SkPoint *pt) |
static bool | ImGui_DragQuad (SkPoint *pts) |
static std::string | build_sksl_highlight_shader () |
static std::string | build_metal_highlight_shader (const std::string &inShader) |
static std::string | build_glsl_highlight_shader (const GrShaderCaps &shaderCaps) |
template<typename OptionsFunc > | |
static void | WriteStateObject (SkJSONWriter &writer, const char *name, const char *value, OptionsFunc &&optionsFunc) |
Variables | |
static CapturingShaderErrorHandler | gShaderErrorHandler |
static std::map< GpuPathRenderers, std::string > | gGaneshPathRendererNames |
static SkColorSpacePrimaries | gSrgbPrimaries |
static SkColorSpacePrimaries | gAdobePrimaries |
static SkColorSpacePrimaries | gP3Primaries |
static SkColorSpacePrimaries | gRec2020Primaries |
struct NamedPrimaries | gNamedPrimaries [] |
static const char | kName [] = "name" |
static const char | kValue [] = "value" |
static const char | kOptions [] = "options" |
static const char | kSlideStateName [] = "Slide" |
static const char | kBackendStateName [] = "Backend" |
static const char | kMSAAStateName [] = "MSAA" |
static const char | kPathRendererStateName [] = "Path renderer" |
static const char | kSoftkeyStateName [] = "Softkey" |
static const char | kSoftkeyHint [] = "Please select a softkey" |
static const char | kON [] = "ON" |
static const char | kRefreshStateName [] = "Refresh" |
#define BACKENDS_STR |
Definition at line 208 of file Viewer.cpp.
#define BACKENDS_STR_EVALUATOR | ( | sw, | |
gl, | |||
vk, | |||
mtl, | |||
d3d, | |||
dawn | |||
) | sw gl vk mtl d3d dawn |
Definition at line 207 of file Viewer.cpp.
#define D3D_BACKEND_STR |
Definition at line 200 of file Viewer.cpp.
#define DAWN_BACKEND_STR |
Definition at line 205 of file Viewer.cpp.
#define GL_BACKEND_STR |
Definition at line 185 of file Viewer.cpp.
#define MAX_ZOOM_LEVEL 8.0f |
Definition at line 1395 of file Viewer.cpp.
#define MIN_ZOOM_LEVEL -8.0f |
Definition at line 1396 of file Viewer.cpp.
#define MTL_BACKEND_STR |
Definition at line 195 of file Viewer.cpp.
#define PATH_PREFIX "" |
Definition at line 263 of file Viewer.cpp.
#define VK_BACKEND_STR |
Definition at line 190 of file Viewer.cpp.
Definition at line 171 of file Viewer.cpp.
|
static |
Definition at line 474 of file Viewer.cpp.
Definition at line 897 of file Viewer.cpp.
|
static |
Definition at line 2104 of file Viewer.cpp.
|
static |
Definition at line 2091 of file Viewer.cpp.
|
static |
Definition at line 2087 of file Viewer.cpp.
Definition at line 888 of file Viewer.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 912 of file Viewer.cpp.
const char * get_backend_string | ( | sk_app::Window::BackendType | type | ) |
Definition at line 355 of file Viewer.cpp.
|
static |
Definition at line 387 of file Viewer.cpp.
|
static |
Definition at line 2064 of file Viewer.cpp.
|
static |
Definition at line 2071 of file Viewer.cpp.
|
static |
Definition at line 2046 of file Viewer.cpp.
|
static |
Definition at line 291 of file Viewer.cpp.
|
static |
Definition at line 470 of file Viewer.cpp.
|
static |
Definition at line 1688 of file Viewer.cpp.
|
static |
Definition at line 3178 of file Viewer.cpp.
|
static |
Definition at line 442 of file Viewer.cpp.
|
static |
Definition at line 173 of file Viewer.cpp.
struct NamedPrimaries gNamedPrimaries[] |
|
static |
Definition at line 448 of file Viewer.cpp.
|
static |
Definition at line 454 of file Viewer.cpp.
|
static |
Definition at line 165 of file Viewer.cpp.
|
static |
Definition at line 436 of file Viewer.cpp.
|
static |
Definition at line 490 of file Viewer.cpp.
|
static |
Definition at line 491 of file Viewer.cpp.
|
static |
Definition at line 486 of file Viewer.cpp.
|
static |
Definition at line 495 of file Viewer.cpp.
|
static |
Definition at line 488 of file Viewer.cpp.
|
static |
Definition at line 492 of file Viewer.cpp.
|
static |
Definition at line 496 of file Viewer.cpp.
|
static |
Definition at line 489 of file Viewer.cpp.
|
static |
Definition at line 494 of file Viewer.cpp.
|
static |
Definition at line 493 of file Viewer.cpp.
|
static |
Definition at line 487 of file Viewer.cpp.