Flutter Engine
skia_gpu_object_layer_test.h
Go to the documentation of this file.
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 #ifndef FLOW_TESTING_SKIA_GPU_OBJECT_LAYER_TEST_H_
6 #define FLOW_TESTING_SKIA_GPU_OBJECT_LAYER_TEST_H_
7 
8 #include "flutter/flow/skia_gpu_object.h"
9 #include "flutter/flow/testing/layer_test.h"
10 #include "flutter/testing/thread_test.h"
11 
12 namespace flutter {
13 namespace testing {
14 
15 // This fixture allows generating tests that create |SkiaGPUObject|'s which
16 // are destroyed on a |SkiaUnrefQueue|.
17 class SkiaGPUObjectLayerTest : public LayerTestBase<ThreadTest> {
18  public:
20 
21  fml::RefPtr<SkiaUnrefQueue> unref_queue() { return unref_queue_; }
22 
23  private:
24  fml::RefPtr<SkiaUnrefQueue> unref_queue_;
25 };
26 
27 } // namespace testing
28 } // namespace flutter
29 
30 #endif // FLOW_TESTING_SKIA_GPU_OBJECT_LAYER_TEST_H_