| 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 "components/mus/public/cpp/surfaces/surfaces_type_converters.h" | 16 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" |
| 17 #include "gpu/command_buffer/common/mailbox.h" | 17 #include "gpu/command_buffer/common/mailbox.h" |
| 18 #include "gpu/command_buffer/common/mailbox_holder.h" | 18 #include "gpu/command_buffer/common/mailbox_holder.h" |
| 19 #include "gpu/command_buffer/common/sync_token.h" | 19 #include "gpu/command_buffer/common/sync_token.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "third_party/skia/include/core/SkColor.h" | 21 #include "third_party/skia/include/core/SkColor.h" |
| 22 #include "third_party/skia/include/core/SkXfermode.h" | 22 #include "third_party/skia/include/core/SkXfermode.h" |
| 23 | 23 |
| 24 using mus::mojom::Color; | 24 using mus::mojom::Color; |
| 25 using mus::mojom::ColorPtr; | 25 using mus::mojom::ColorPtr; |
| 26 using mus::mojom::CompositorFrame; | 26 using mus::mojom::CompositorFrame; |
| 27 using mus::mojom::CompositorFramePtr; | 27 using mus::mojom::CompositorFramePtr; |
| 28 using mus::mojom::CompositorFrameMetadata; | |
| 29 using mus::mojom::CompositorFrameMetadataPtr; | |
| 30 using mus::mojom::DebugBorderQuadState; | 28 using mus::mojom::DebugBorderQuadState; |
| 31 using mus::mojom::DebugBorderQuadStatePtr; | 29 using mus::mojom::DebugBorderQuadStatePtr; |
| 32 using mus::mojom::Pass; | 30 using mus::mojom::Pass; |
| 33 using mus::mojom::PassPtr; | 31 using mus::mojom::PassPtr; |
| 34 using mus::mojom::Quad; | 32 using mus::mojom::Quad; |
| 35 using mus::mojom::QuadPtr; | 33 using mus::mojom::QuadPtr; |
| 36 using mus::mojom::RenderPassQuadState; | 34 using mus::mojom::RenderPassQuadState; |
| 37 using mus::mojom::RenderPassQuadStatePtr; | 35 using mus::mojom::RenderPassQuadStatePtr; |
| 38 using mus::mojom::SolidColorQuadState; | 36 using mus::mojom::SolidColorQuadState; |
| 39 using mus::mojom::SolidColorQuadStatePtr; | 37 using mus::mojom::SolidColorQuadStatePtr; |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 ASSERT_TRUE(mus_quad->debug_border_quad_state); | 351 ASSERT_TRUE(mus_quad->debug_border_quad_state); |
| 354 DebugBorderQuadStatePtr& mus_debug_border_state = | 352 DebugBorderQuadStatePtr& mus_debug_border_state = |
| 355 mus_quad->debug_border_quad_state; | 353 mus_quad->debug_border_quad_state; |
| 356 EXPECT_TRUE( | 354 EXPECT_TRUE( |
| 357 Color::From(arbitrary_color).Equals(mus_debug_border_state->color)); | 355 Color::From(arbitrary_color).Equals(mus_debug_border_state->color)); |
| 358 EXPECT_EQ(width, mus_debug_border_state->width); | 356 EXPECT_EQ(width, mus_debug_border_state->width); |
| 359 } | 357 } |
| 360 | 358 |
| 361 } // namespace | 359 } // namespace |
| 362 } // namespace mojo | 360 } // namespace mojo |
| OLD | NEW |