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/traits_test_service.mojom.h" | 8 #include "cc/ipc/traits_test_service.mojom.h" |
9 #include "cc/output/copy_output_result.h" | 9 #include "cc/output/copy_output_result.h" |
10 #include "cc/quads/debug_border_draw_quad.h" | 10 #include "cc/quads/debug_border_draw_quad.h" |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 const gpu::CommandBufferId command_buffer_id( | 961 const gpu::CommandBufferId command_buffer_id( |
962 gpu::CommandBufferId::FromUnsafeValue(0xdeadbeef)); | 962 gpu::CommandBufferId::FromUnsafeValue(0xdeadbeef)); |
963 const uint64_t release_count = 0xdeadbeefdeadL; | 963 const uint64_t release_count = 0xdeadbeefdeadL; |
964 const gpu::SyncToken sync_token(command_buffer_namespace, extra_data_field, | 964 const gpu::SyncToken sync_token(command_buffer_namespace, extra_data_field, |
965 command_buffer_id, release_count); | 965 command_buffer_id, release_count); |
966 const uint32_t texture_target = 1337; | 966 const uint32_t texture_target = 1337; |
967 const gfx::Size size_in_pixels(93, 24); | 967 const gfx::Size size_in_pixels(93, 24); |
968 const bool is_overlay_candidate = true; | 968 const bool is_overlay_candidate = true; |
969 const bool secure_output_only = true; | 969 const bool secure_output_only = true; |
970 const bool nearest_neighbor = true; | 970 const bool nearest_neighbor = true; |
971 const gfx::ColorSpace color_space(4, 5, 9, gfx::ColorSpace::RangeID::LIMITED); | 971 const gfx::ColorSpace color_space = |
| 972 gfx::ColorSpace::CreateVideo(4, 5, 9, gfx::ColorSpace::RangeID::LIMITED); |
972 #if defined(OS_ANDROID) | 973 #if defined(OS_ANDROID) |
973 const bool is_backed_by_surface_texture = true; | 974 const bool is_backed_by_surface_texture = true; |
974 const bool wants_promotion_hint = true; | 975 const bool wants_promotion_hint = true; |
975 #endif | 976 #endif |
976 | 977 |
977 gpu::Mailbox mailbox; | 978 gpu::Mailbox mailbox; |
978 mailbox.SetName(mailbox_name); | 979 mailbox.SetName(mailbox_name); |
979 TextureMailbox input(mailbox, sync_token, texture_target, size_in_pixels, | 980 TextureMailbox input(mailbox, sync_token, texture_target, size_in_pixels, |
980 is_overlay_candidate, secure_output_only); | 981 is_overlay_candidate, secure_output_only); |
981 input.set_nearest_neighbor(nearest_neighbor); | 982 input.set_nearest_neighbor(nearest_neighbor); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 EXPECT_EQ(u_plane_resource_id, out_quad->u_plane_resource_id()); | 1106 EXPECT_EQ(u_plane_resource_id, out_quad->u_plane_resource_id()); |
1106 EXPECT_EQ(v_plane_resource_id, out_quad->v_plane_resource_id()); | 1107 EXPECT_EQ(v_plane_resource_id, out_quad->v_plane_resource_id()); |
1107 EXPECT_EQ(a_plane_resource_id, out_quad->a_plane_resource_id()); | 1108 EXPECT_EQ(a_plane_resource_id, out_quad->a_plane_resource_id()); |
1108 EXPECT_EQ(color_space, out_quad->color_space); | 1109 EXPECT_EQ(color_space, out_quad->color_space); |
1109 EXPECT_EQ(resource_offset, out_quad->resource_offset); | 1110 EXPECT_EQ(resource_offset, out_quad->resource_offset); |
1110 EXPECT_EQ(resource_multiplier, out_quad->resource_multiplier); | 1111 EXPECT_EQ(resource_multiplier, out_quad->resource_multiplier); |
1111 EXPECT_EQ(bits_per_channel, out_quad->bits_per_channel); | 1112 EXPECT_EQ(bits_per_channel, out_quad->bits_per_channel); |
1112 } | 1113 } |
1113 | 1114 |
1114 } // namespace cc | 1115 } // namespace cc |
OLD | NEW |