Benign repos Download

fl_compositor_software_test.cc

imports flutter/shell/platform/linux/fl_compositor_software.himports flutter/shell/platform/linux/fl_task_runner.h
SHA-256af8c3d06c38bf51f47099e4cbedc2c26edfda63f9e6c9e25a95a63e4b675065d

Evidence

imports flutter/shell/platform/linux/fl_compositor_software.h lines 1–17
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 <thread>
6#include "gtest/gtest.h"
7
8#include "flutter/common/constants.h"
9#include "flutter/fml/synchronization/waitable_event.h"
10#include "flutter/shell/platform/linux/fl_compositor_software.h"
11#include "flutter/shell/platform/linux/fl_task_runner.h"
12#include "flutter/shell/platform/linux/public/flutter_linux/fl_dart_project.h"
13
14#include <gdk/gdkwayland.h>
15
16TEST(FlCompositorSoftwareTest, Render) {
17 g_autoptr(FlDartProject) project = fl_dart_project_n …
C/C++ unit-test EXPECT_EQ marker lines 44–50
44:58… &frame_width,
45 &frame_height);
46 EXPECT_EQ(frame_width, width);
47 EXPECT_EQ(frame_height, height);
48
49 // Render presented layer.
50 int stride = cairo_format_stride_for_wi …
English function-word token "for" lines 108–112
108:12… ignal();
109 }).detach();
110
111 // Render, will wait for the second layer if necessary.
112 int stride2 = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB3 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.