5#include "gtest/gtest.h"
15 static std::shared_ptr<Foobar>
Create() {
return std::make_shared<Foobar>(); }
17 size_t GetSize()
const {
return size_; }
19 void SetSize(
size_t size) { size_ =
size; }
21 void Reset() { is_reset_ =
true; }
23 bool GetIsReset()
const {
return is_reset_; }
25 void SetIsReset(
bool is_reset) { is_reset_ = is_reset; }
29 bool is_reset_ =
false;
36 auto grabbed =
pool.Grab();
37 grabbed->SetSize(123);
38 pool.Recycle(grabbed);
39 EXPECT_EQ(
pool.GetSize(), 123u);
41 auto grabbed =
pool.Grab();
42 EXPECT_EQ(grabbed->GetSize(), 123u);
44 EXPECT_EQ(
pool.GetSize(), 0u);
50 std::vector<std::shared_ptr<Foobar>>
values;
52 for (
int i = 0;
i < 20;
i++) {
60 EXPECT_EQ(
pool.GetSize(), 1'000u);
static sk_sp< Effect > Create()
A thread-safe pool with a limited byte size.
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
TEST(AiksCanvasTest, EmptyCullRect)
#define EXPECT_TRUE(handle)