| 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 <AVFoundation/AVFoundation.h> | 5 #import <AVFoundation/AVFoundation.h> |
| 6 #include <memory> | 6 #include <memory> |
| 7 | 7 |
| 8 #include "base/mac/sdk_forward_declarations.h" | 8 #include "base/mac/sdk_forward_declarations.h" |
| 9 #include "gpu/GLES2/gl2extchromium.h" | 9 #include "gpu/GLES2/gl2extchromium.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "testing/gtest_mac.h" | 11 #include "testing/gtest_mac.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "ui/accelerated_widget_mac/ca_renderer_layer_tree.h" | 13 #include "ui/accelerated_widget_mac/ca_renderer_layer_tree.h" |
| 14 #include "ui/gfx/geometry/dip_util.h" | 14 #include "ui/gfx/geometry/dip_util.h" |
| 15 #include "ui/gfx/mac/io_surface.h" | 15 #include "ui/gfx/mac/io_surface.h" |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 CALayer* content_layer = [[transform_layer sublayers] objectAtIndex:0]; | 973 CALayer* content_layer = [[transform_layer sublayers] objectAtIndex:0]; |
| 974 | 974 |
| 975 // Validate the content layer and fullscreen low power mode. | 975 // Validate the content layer and fullscreen low power mode. |
| 976 EXPECT_TRUE([content_layer | 976 EXPECT_TRUE([content_layer |
| 977 isKindOfClass:NSClassFromString(@"AVSampleBufferDisplayLayer")]); | 977 isKindOfClass:NSClassFromString(@"AVSampleBufferDisplayLayer")]); |
| 978 EXPECT_FALSE(fullscreen_low_power_valid); | 978 EXPECT_FALSE(fullscreen_low_power_valid); |
| 979 } | 979 } |
| 980 } | 980 } |
| 981 | 981 |
| 982 } // namespace gpu | 982 } // namespace gpu |
| OLD | NEW |