OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/mac/sdk_forward_declarations.h" | 5 #include "base/mac/sdk_forward_declarations.h" |
6 #include "content/common/gpu/ca_layer_tree_mac.h" | |
7 #include "gpu/GLES2/gl2extchromium.h" | 6 #include "gpu/GLES2/gl2extchromium.h" |
| 7 #include "gpu/ipc/service/ca_layer_tree_mac.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "ui/gfx/geometry/dip_util.h" | 10 #include "ui/gfx/geometry/dip_util.h" |
11 #include "ui/gfx/mac/io_surface.h" | 11 #include "ui/gfx/mac/io_surface.h" |
12 | 12 |
13 namespace content { | 13 namespace gpu { |
14 | 14 |
15 class CALayerTreeTest : public testing::Test { | 15 class CALayerTreeTest : public testing::Test { |
16 protected: | 16 protected: |
17 void SetUp() override { | 17 void SetUp() override { |
18 superlayer_.reset([[CALayer alloc] init]); | 18 superlayer_.reset([[CALayer alloc] init]); |
19 } | 19 } |
20 | 20 |
21 base::scoped_nsobject<CALayer> superlayer_; | 21 base::scoped_nsobject<CALayer> superlayer_; |
22 }; | 22 }; |
23 | 23 |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 EXPECT_EQ(1u, [[transform_layer sublayers] count]); | 842 EXPECT_EQ(1u, [[transform_layer sublayers] count]); |
843 content_layer3 = [[transform_layer sublayers] objectAtIndex:0]; | 843 content_layer3 = [[transform_layer sublayers] objectAtIndex:0]; |
844 | 844 |
845 // Validate the content layer. | 845 // Validate the content layer. |
846 EXPECT_FALSE([content_layer3 | 846 EXPECT_FALSE([content_layer3 |
847 isKindOfClass:NSClassFromString(@"AVSampleBufferDisplayLayer")]); | 847 isKindOfClass:NSClassFromString(@"AVSampleBufferDisplayLayer")]); |
848 EXPECT_EQ(content_layer3, content_layer2); | 848 EXPECT_EQ(content_layer3, content_layer2); |
849 } | 849 } |
850 } | 850 } |
851 | 851 |
852 } // namespace content | 852 } // namespace gpu |
OLD | NEW |