| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "cc/quads/debug_border_draw_quad.h" | 10 #include "cc/quads/debug_border_draw_quad.h" |
| 11 #include "cc/quads/render_pass.h" | 11 #include "cc/quads/render_pass.h" |
| 12 #include "cc/quads/solid_color_draw_quad.h" | 12 #include "cc/quads/solid_color_draw_quad.h" |
| 13 #include "cc/quads/surface_draw_quad.h" | 13 #include "cc/quads/surface_draw_quad.h" |
| 14 #include "cc/quads/texture_draw_quad.h" | 14 #include "cc/quads/texture_draw_quad.h" |
| 15 #include "cc/resources/resource_provider.h" | 15 #include "cc/resources/resource_provider.h" |
| 16 #include "gpu/command_buffer/common/mailbox.h" | 16 #include "gpu/command_buffer/common/mailbox.h" |
| 17 #include "gpu/command_buffer/common/mailbox_holder.h" | 17 #include "gpu/command_buffer/common/mailbox_holder.h" |
| 18 #include "gpu/command_buffer/common/sync_token.h" | 18 #include "gpu/command_buffer/common/sync_token.h" |
| 19 #include "mojo/converters/geometry/geometry_type_converters.h" | |
| 20 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 19 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
| 21 #include "mojo/converters/transform/transform_type_converters.h" | 20 #include "mojo/converters/transform/transform_type_converters.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "third_party/skia/include/core/SkColor.h" | 22 #include "third_party/skia/include/core/SkColor.h" |
| 24 #include "third_party/skia/include/core/SkXfermode.h" | 23 #include "third_party/skia/include/core/SkXfermode.h" |
| 24 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" |
| 25 | 25 |
| 26 using mus::mojom::Color; | 26 using mus::mojom::Color; |
| 27 using mus::mojom::ColorPtr; | 27 using mus::mojom::ColorPtr; |
| 28 using mus::mojom::CompositorFrame; | 28 using mus::mojom::CompositorFrame; |
| 29 using mus::mojom::CompositorFramePtr; | 29 using mus::mojom::CompositorFramePtr; |
| 30 using mus::mojom::CompositorFrameMetadata; | 30 using mus::mojom::CompositorFrameMetadata; |
| 31 using mus::mojom::CompositorFrameMetadataPtr; | 31 using mus::mojom::CompositorFrameMetadataPtr; |
| 32 using mus::mojom::DebugBorderQuadState; | 32 using mus::mojom::DebugBorderQuadState; |
| 33 using mus::mojom::DebugBorderQuadStatePtr; | 33 using mus::mojom::DebugBorderQuadStatePtr; |
| 34 using mus::mojom::Pass; | 34 using mus::mojom::Pass; |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 ASSERT_TRUE(mus_quad->debug_border_quad_state); | 476 ASSERT_TRUE(mus_quad->debug_border_quad_state); |
| 477 DebugBorderQuadStatePtr& mus_debug_border_state = | 477 DebugBorderQuadStatePtr& mus_debug_border_state = |
| 478 mus_quad->debug_border_quad_state; | 478 mus_quad->debug_border_quad_state; |
| 479 EXPECT_TRUE( | 479 EXPECT_TRUE( |
| 480 Color::From(arbitrary_color).Equals(mus_debug_border_state->color)); | 480 Color::From(arbitrary_color).Equals(mus_debug_border_state->color)); |
| 481 EXPECT_EQ(width, mus_debug_border_state->width); | 481 EXPECT_EQ(width, mus_debug_border_state->width); |
| 482 } | 482 } |
| 483 | 483 |
| 484 } // namespace | 484 } // namespace |
| 485 } // namespace mojo | 485 } // namespace mojo |
| OLD | NEW |