dl_test_snippets.cc
Source contains low-bit mask syntaximports txt/platform.h
SHA-2568a9ed80c0a9f2b6d0e3e59c80bdd712171f3eda5e62b62b29bf41f0e53f7339c
MaleculeH(Db)Md(In)
Evidence
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#include "flutter/display_list/testing/dl_test_snippets.h"
6#include "flutter/display_list/dl_builder.h"
7#include "flutter/display_list/dl_op_receiver.h"
8#include "flutter/display_list/dl_text_skia.h"
9#include "flutter/display_list/skia/dl_sk_canvas.h"
10#if IMPELLER_SUPPORTS_RENDERING
11#include "flutter/impeller/display_list/dl_text_impeller.h" // nogncheck
12#include "flutter/impeller/typographer/backends/skia/text_frame_skia.h" // nogncheck
13#endif
14#include "third_party/skia/include/core/SkFontMgr.h"
15#include "third_party/skia/include/core/SkTypeface.h"
16#include "txt/platform.h"
17
18namespace flutter {
⋯4 lines
28:28… r(DlRect::MakeWH(150, 100));
29 DlPaint paint;
30 for (int y = 10; y <= 60; y += 10) {
31 for (int x = 10; x <= 60; x += 10) {
32 paint.setColor( …
61:15… = 0; x < h; x += checker_size) {
62 DlPaint& cellp = ((x + y) & 1) == 0 ? p0 : p1;
63 canvas.DrawRect(DlRect::MakeXYWH(x, y, checker_size, checker_size),
64 cellp);
65 }
321:9…
322 // There are many reasons that save and restore can elide content,
323 // including whether or not there are any draw operations …
355:3… }},
356 // For saveLayer calls with bounds, we need at least one unclipped
357 // draw command so that the bounds are not re …