Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: mojo/converters/surfaces/surfaces_type_converters.cc

Issue 1990773002: cc: Remove IOSurfaceDrawQuad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix messages unittest Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/converters/surfaces/surfaces_type_converters.h" 5 #include "mojo/converters/surfaces/surfaces_type_converters.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 using mus::mojom::YUVVideoQuadStatePtr; 66 using mus::mojom::YUVVideoQuadStatePtr;
67 67
68 namespace mojo { 68 namespace mojo {
69 69
70 #define ASSERT_ENUM_VALUES_EQUAL(value) \ 70 #define ASSERT_ENUM_VALUES_EQUAL(value) \
71 static_assert(cc::DrawQuad::value == static_cast<cc::DrawQuad::Material>( \ 71 static_assert(cc::DrawQuad::value == static_cast<cc::DrawQuad::Material>( \
72 mus::mojom::Material::value), \ 72 mus::mojom::Material::value), \
73 #value " enum value must match") 73 #value " enum value must match")
74 74
75 ASSERT_ENUM_VALUES_EQUAL(DEBUG_BORDER); 75 ASSERT_ENUM_VALUES_EQUAL(DEBUG_BORDER);
76 ASSERT_ENUM_VALUES_EQUAL(IO_SURFACE_CONTENT);
77 ASSERT_ENUM_VALUES_EQUAL(PICTURE_CONTENT); 76 ASSERT_ENUM_VALUES_EQUAL(PICTURE_CONTENT);
78 ASSERT_ENUM_VALUES_EQUAL(RENDER_PASS); 77 ASSERT_ENUM_VALUES_EQUAL(RENDER_PASS);
79 ASSERT_ENUM_VALUES_EQUAL(SOLID_COLOR); 78 ASSERT_ENUM_VALUES_EQUAL(SOLID_COLOR);
80 ASSERT_ENUM_VALUES_EQUAL(STREAM_VIDEO_CONTENT); 79 ASSERT_ENUM_VALUES_EQUAL(STREAM_VIDEO_CONTENT);
81 ASSERT_ENUM_VALUES_EQUAL(SURFACE_CONTENT); 80 ASSERT_ENUM_VALUES_EQUAL(SURFACE_CONTENT);
82 ASSERT_ENUM_VALUES_EQUAL(TEXTURE_CONTENT); 81 ASSERT_ENUM_VALUES_EQUAL(TEXTURE_CONTENT);
83 ASSERT_ENUM_VALUES_EQUAL(TILED_CONTENT); 82 ASSERT_ENUM_VALUES_EQUAL(TILED_CONTENT);
84 ASSERT_ENUM_VALUES_EQUAL(YUV_VIDEO_CONTENT); 83 ASSERT_ENUM_VALUES_EQUAL(YUV_VIDEO_CONTENT);
85 84
86 static_assert(cc::YUVVideoDrawQuad::REC_601 == 85 static_assert(cc::YUVVideoDrawQuad::REC_601 ==
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 626 }
628 627
629 // static 628 // static
630 std::unique_ptr<cc::CompositorFrame> 629 std::unique_ptr<cc::CompositorFrame>
631 TypeConverter<std::unique_ptr<cc::CompositorFrame>, 630 TypeConverter<std::unique_ptr<cc::CompositorFrame>,
632 CompositorFramePtr>::Convert(const CompositorFramePtr& input) { 631 CompositorFramePtr>::Convert(const CompositorFramePtr& input) {
633 return ConvertToCompositorFrame(input, nullptr); 632 return ConvertToCompositorFrame(input, nullptr);
634 } 633 }
635 634
636 } // namespace mojo 635 } // namespace mojo
OLDNEW
« content/common/cc_messages_unittest.cc ('K') | « content/common/cc_messages_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698