OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "cc/quads/render_pass.h" | 5 #include "cc/quads/render_pass.h" |
6 #include "cc/quads/solid_color_draw_quad.h" | 6 #include "cc/quads/solid_color_draw_quad.h" |
7 #include "cc/quads/surface_draw_quad.h" | 7 #include "cc/quads/surface_draw_quad.h" |
8 #include "cc/quads/texture_draw_quad.h" | 8 #include "cc/quads/texture_draw_quad.h" |
9 #include "gpu/command_buffer/common/mailbox.h" | 9 #include "gpu/command_buffer/common/mailbox.h" |
10 #include "gpu/command_buffer/common/mailbox_holder.h" | 10 #include "gpu/command_buffer/common/mailbox_holder.h" |
11 #include "mojo/converters/geometry/geometry_type_converters.h" | 11 #include "mojo/converters/geometry/geometry_type_converters.h" |
12 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 12 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
13 #include "mojo/converters/transform/transform_converters.h" | 13 #include "mojo/converters/transform/transform_type_converters.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
16 #include "third_party/skia/include/core/SkXfermode.h" | 16 #include "third_party/skia/include/core/SkXfermode.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace { | 19 namespace { |
20 | 20 |
21 TEST(SurfaceLibTest, SurfaceIdConverterNullId) { | 21 TEST(SurfaceLibTest, SurfaceIdConverterNullId) { |
22 cc::SurfaceId null_id; | 22 cc::SurfaceId null_id; |
23 cc::SurfaceId round_trip = SurfaceId::From(null_id).To<cc::SurfaceId>(); | 23 cc::SurfaceId round_trip = SurfaceId::From(null_id).To<cc::SurfaceId>(); |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 cc::ReturnedResource round_trip_resource = | 456 cc::ReturnedResource round_trip_resource = |
457 mojo_resource.To<cc::ReturnedResource>(); | 457 mojo_resource.To<cc::ReturnedResource>(); |
458 EXPECT_EQ(id, round_trip_resource.id); | 458 EXPECT_EQ(id, round_trip_resource.id); |
459 EXPECT_EQ(sync_point, round_trip_resource.sync_point); | 459 EXPECT_EQ(sync_point, round_trip_resource.sync_point); |
460 EXPECT_EQ(count, round_trip_resource.count); | 460 EXPECT_EQ(count, round_trip_resource.count); |
461 EXPECT_EQ(lost, round_trip_resource.lost); | 461 EXPECT_EQ(lost, round_trip_resource.lost); |
462 } | 462 } |
463 | 463 |
464 } // namespace | 464 } // namespace |
465 } // namespace mojo | 465 } // namespace mojo |
OLD | NEW |