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/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "cc/input/selection.h" | 7 #include "cc/input/selection.h" |
8 #include "cc/ipc/copy_output_request_struct_traits.h" | 8 #include "cc/ipc/copy_output_request_struct_traits.h" |
9 #include "cc/ipc/traits_test_service.mojom.h" | 9 #include "cc/ipc/traits_test_service.mojom.h" |
10 #include "cc/output/copy_output_result.h" | 10 #include "cc/output/copy_output_result.h" |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 const gpu::CommandBufferId command_buffer_id( | 1100 const gpu::CommandBufferId command_buffer_id( |
1101 gpu::CommandBufferId::FromUnsafeValue(0xdeadbeef)); | 1101 gpu::CommandBufferId::FromUnsafeValue(0xdeadbeef)); |
1102 const uint64_t release_count = 0xdeadbeefdeadL; | 1102 const uint64_t release_count = 0xdeadbeefdeadL; |
1103 const gpu::SyncToken sync_token(command_buffer_namespace, extra_data_field, | 1103 const gpu::SyncToken sync_token(command_buffer_namespace, extra_data_field, |
1104 command_buffer_id, release_count); | 1104 command_buffer_id, release_count); |
1105 const uint32_t texture_target = 1337; | 1105 const uint32_t texture_target = 1337; |
1106 const gfx::Size size_in_pixels(93, 24); | 1106 const gfx::Size size_in_pixels(93, 24); |
1107 const bool is_overlay_candidate = true; | 1107 const bool is_overlay_candidate = true; |
1108 const bool secure_output_only = true; | 1108 const bool secure_output_only = true; |
1109 const bool nearest_neighbor = true; | 1109 const bool nearest_neighbor = true; |
1110 const gfx::ColorSpace color_space = | 1110 const gfx::ColorSpace color_space = gfx::ColorSpace( |
1111 gfx::ColorSpace::CreateVideo(4, 5, 9, gfx::ColorSpace::RangeID::LIMITED); | 1111 gfx::ColorSpace::PrimaryID::BT470M, gfx::ColorSpace::TransferID::GAMMA28, |
| 1112 gfx::ColorSpace::MatrixID::BT2020_NCL, gfx::ColorSpace::RangeID::LIMITED); |
1112 #if defined(OS_ANDROID) | 1113 #if defined(OS_ANDROID) |
1113 const bool is_backed_by_surface_texture = true; | 1114 const bool is_backed_by_surface_texture = true; |
1114 const bool wants_promotion_hint = true; | 1115 const bool wants_promotion_hint = true; |
1115 #endif | 1116 #endif |
1116 | 1117 |
1117 gpu::Mailbox mailbox; | 1118 gpu::Mailbox mailbox; |
1118 mailbox.SetName(mailbox_name); | 1119 mailbox.SetName(mailbox_name); |
1119 TextureMailbox input(mailbox, sync_token, texture_target, size_in_pixels, | 1120 TextureMailbox input(mailbox, sync_token, texture_target, size_in_pixels, |
1120 is_overlay_candidate, secure_output_only); | 1121 is_overlay_candidate, secure_output_only); |
1121 input.set_nearest_neighbor(nearest_neighbor); | 1122 input.set_nearest_neighbor(nearest_neighbor); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 EXPECT_EQ(u_plane_resource_id, out_quad->u_plane_resource_id()); | 1246 EXPECT_EQ(u_plane_resource_id, out_quad->u_plane_resource_id()); |
1246 EXPECT_EQ(v_plane_resource_id, out_quad->v_plane_resource_id()); | 1247 EXPECT_EQ(v_plane_resource_id, out_quad->v_plane_resource_id()); |
1247 EXPECT_EQ(a_plane_resource_id, out_quad->a_plane_resource_id()); | 1248 EXPECT_EQ(a_plane_resource_id, out_quad->a_plane_resource_id()); |
1248 EXPECT_EQ(color_space, out_quad->color_space); | 1249 EXPECT_EQ(color_space, out_quad->color_space); |
1249 EXPECT_EQ(resource_offset, out_quad->resource_offset); | 1250 EXPECT_EQ(resource_offset, out_quad->resource_offset); |
1250 EXPECT_EQ(resource_multiplier, out_quad->resource_multiplier); | 1251 EXPECT_EQ(resource_multiplier, out_quad->resource_multiplier); |
1251 EXPECT_EQ(bits_per_channel, out_quad->bits_per_channel); | 1252 EXPECT_EQ(bits_per_channel, out_quad->bits_per_channel); |
1252 } | 1253 } |
1253 | 1254 |
1254 } // namespace cc | 1255 } // namespace cc |
OLD | NEW |