| 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/services/public/cpp/geometry/geometry_type_converters.h" | 11 #include "mojo/converters/geometry_type_converters.h" |
| 12 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" | 12 #include "mojo/converters/surfaces_type_converters.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
| 15 #include "third_party/skia/include/core/SkXfermode.h" | 15 #include "third_party/skia/include/core/SkXfermode.h" |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 TEST(SurfaceLibTest, SurfaceIdConverterNullId) { | 20 TEST(SurfaceLibTest, SurfaceIdConverterNullId) { |
| 21 cc::SurfaceId null_id; | 21 cc::SurfaceId null_id; |
| 22 cc::SurfaceId round_trip = SurfaceId::From(null_id).To<cc::SurfaceId>(); | 22 cc::SurfaceId round_trip = SurfaceId::From(null_id).To<cc::SurfaceId>(); |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 cc::ReturnedResource round_trip_resource = | 451 cc::ReturnedResource round_trip_resource = |
| 452 mojo_resource.To<cc::ReturnedResource>(); | 452 mojo_resource.To<cc::ReturnedResource>(); |
| 453 EXPECT_EQ(id, round_trip_resource.id); | 453 EXPECT_EQ(id, round_trip_resource.id); |
| 454 EXPECT_EQ(sync_point, round_trip_resource.sync_point); | 454 EXPECT_EQ(sync_point, round_trip_resource.sync_point); |
| 455 EXPECT_EQ(count, round_trip_resource.count); | 455 EXPECT_EQ(count, round_trip_resource.count); |
| 456 EXPECT_EQ(lost, round_trip_resource.lost); | 456 EXPECT_EQ(lost, round_trip_resource.lost); |
| 457 } | 457 } |
| 458 | 458 |
| 459 } // namespace | 459 } // namespace |
| 460 } // namespace mojo | 460 } // namespace mojo |
| OLD | NEW |