Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: gpu/ipc/service/ca_layer_tree_unittest_mac.mm

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/ca_layer_tree_mac.mm ('k') | gpu/ipc/service/child_window_surface_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/service/ca_layer_tree_mac.mm ('k') | gpu/ipc/service/child_window_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698