| 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 "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" | 5 #include "mojo/converters/surfaces_type_converters.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/output/delegated_frame_data.h" | 9 #include "cc/output/delegated_frame_data.h" |
| 10 #include "cc/quads/draw_quad.h" | 10 #include "cc/quads/draw_quad.h" |
| 11 #include "cc/quads/render_pass.h" | 11 #include "cc/quads/render_pass.h" |
| 12 #include "cc/quads/render_pass_draw_quad.h" | 12 #include "cc/quads/render_pass_draw_quad.h" |
| 13 #include "cc/quads/shared_quad_state.h" | 13 #include "cc/quads/shared_quad_state.h" |
| 14 #include "cc/quads/solid_color_draw_quad.h" | 14 #include "cc/quads/solid_color_draw_quad.h" |
| 15 #include "cc/quads/surface_draw_quad.h" | 15 #include "cc/quads/surface_draw_quad.h" |
| 16 #include "cc/quads/texture_draw_quad.h" | 16 #include "cc/quads/texture_draw_quad.h" |
| 17 #include "cc/quads/tile_draw_quad.h" | 17 #include "cc/quads/tile_draw_quad.h" |
| 18 #include "cc/quads/yuv_video_draw_quad.h" | 18 #include "cc/quads/yuv_video_draw_quad.h" |
| 19 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | 19 #include "mojo/converters/geometry_type_converters.h" |
| 20 | 20 |
| 21 namespace mojo { | 21 namespace mojo { |
| 22 | 22 |
| 23 #define ASSERT_ENUM_VALUES_EQUAL(value) \ | 23 #define ASSERT_ENUM_VALUES_EQUAL(value) \ |
| 24 COMPILE_ASSERT(cc::DrawQuad::value == static_cast<cc::DrawQuad::Material>( \ | 24 COMPILE_ASSERT(cc::DrawQuad::value == static_cast<cc::DrawQuad::Material>( \ |
| 25 MATERIAL_##value), \ | 25 MATERIAL_##value), \ |
| 26 value##_enum_value_matches) | 26 value##_enum_value_matches) |
| 27 | 27 |
| 28 ASSERT_ENUM_VALUES_EQUAL(CHECKERBOARD); | 28 ASSERT_ENUM_VALUES_EQUAL(CHECKERBOARD); |
| 29 ASSERT_ENUM_VALUES_EQUAL(DEBUG_BORDER); | 29 ASSERT_ENUM_VALUES_EQUAL(DEBUG_BORDER); |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 if (!pass) | 568 if (!pass) |
| 569 return scoped_ptr<cc::CompositorFrame>(); | 569 return scoped_ptr<cc::CompositorFrame>(); |
| 570 frame_data->render_pass_list.push_back(pass.Pass()); | 570 frame_data->render_pass_list.push_back(pass.Pass()); |
| 571 } | 571 } |
| 572 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); | 572 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); |
| 573 frame->delegated_frame_data = frame_data.Pass(); | 573 frame->delegated_frame_data = frame_data.Pass(); |
| 574 return frame.Pass(); | 574 return frame.Pass(); |
| 575 } | 575 } |
| 576 | 576 |
| 577 } // namespace mojo | 577 } // namespace mojo |
| OLD | NEW |