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 import "mojo/services/public/interfaces/geometry/geometry.mojom" | 5 import "mojo/services/public/interfaces/geometry/geometry.mojom" |
6 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" | 6 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" |
7 | 7 |
8 module mojo { | 8 module mojo { |
9 | 9 |
10 struct Color { | 10 struct Color { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Allows changing the rect that gets drawn to make it smaller. This value | 77 // Allows changing the rect that gets drawn to make it smaller. This value |
78 // should be clipped to |rect|. This rect lives in content space. | 78 // should be clipped to |rect|. This rect lives in content space. |
79 bool needs_blending; | 79 bool needs_blending; |
80 | 80 |
81 // Index into the containing pass' shared quad state array which has state | 81 // Index into the containing pass' shared quad state array which has state |
82 // (transforms etc) shared by multiple quads. | 82 // (transforms etc) shared by multiple quads. |
83 int32 shared_quad_state_index; | 83 int32 shared_quad_state_index; |
84 | 84 |
85 // Only one of the following will be set, depending on the material. | 85 // Only one of the following will be set, depending on the material. |
86 CheckerboardQuadState checkerboard_quad_state; | 86 CheckerboardQuadState? checkerboard_quad_state; |
87 DebugBorderQuadState debug_border_quad_state; | 87 DebugBorderQuadState? debug_border_quad_state; |
88 IoSurfaceContentQuadState io_surface_quad_state; | 88 IoSurfaceContentQuadState? io_surface_quad_state; |
89 RenderPassQuadState render_pass_quad_state; | 89 RenderPassQuadState? render_pass_quad_state; |
90 SolidColorQuadState solid_color_quad_state; | 90 SolidColorQuadState? solid_color_quad_state; |
91 SurfaceQuadState surface_quad_state; | 91 SurfaceQuadState? surface_quad_state; |
92 TextureQuadState texture_quad_state; | 92 TextureQuadState? texture_quad_state; |
93 TiledContentQuadState tiled_content_quad_state; | 93 TiledContentQuadState? tiled_content_quad_state; |
94 StreamVideoQuadState stream_video_quad_state; | 94 StreamVideoQuadState? stream_video_quad_state; |
95 YUVVideoQuadState yuv_video_quad_state; | 95 YUVVideoQuadState? yuv_video_quad_state; |
96 }; | 96 }; |
97 | 97 |
98 enum SkXfermode { | 98 enum SkXfermode { |
99 kClear_Mode = 0, //!< [0, 0] | 99 kClear_Mode = 0, //!< [0, 0] |
100 kSrc_Mode, //!< [Sa, Sc] | 100 kSrc_Mode, //!< [Sa, Sc] |
101 kDst_Mode, //!< [Da, Dc] | 101 kDst_Mode, //!< [Da, Dc] |
102 kSrcOver_Mode, //!< [Sa + Da - Sa*Da, Rc = Sc + (1 - Sa)*Dc] | 102 kSrcOver_Mode, //!< [Sa + Da - Sa*Da, Rc = Sc + (1 - Sa)*Dc] |
103 kDstOver_Mode, //!< [Sa + Da - Sa*Da, Rc = Dc + (1 - Da)*Sc] | 103 kDstOver_Mode, //!< [Sa + Da - Sa*Da, Rc = Dc + (1 - Da)*Sc] |
104 kSrcIn_Mode, //!< [Sa * Da, Sc * Da] | 104 kSrcIn_Mode, //!< [Sa * Da, Sc * Da] |
105 kDstIn_Mode, //!< [Sa * Da, Sa * Dc] | 105 kDstIn_Mode, //!< [Sa * Da, Sa * Dc] |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int32 id; | 158 int32 id; |
159 mojo.Rect output_rect; | 159 mojo.Rect output_rect; |
160 mojo.Rect damage_rect; | 160 mojo.Rect damage_rect; |
161 mojo.Transform transform_to_root_target; | 161 mojo.Transform transform_to_root_target; |
162 bool has_transparent_background; | 162 bool has_transparent_background; |
163 Quad[] quads; | 163 Quad[] quads; |
164 SharedQuadState[] shared_quad_states; | 164 SharedQuadState[] shared_quad_states; |
165 }; | 165 }; |
166 | 166 |
167 } | 167 } |
OLD | NEW |