OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_PARAMS_H_ |
| 6 #define UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_PARAMS_H_ |
| 7 |
| 8 #include "base/mac/scoped_cftyperef.h" |
| 9 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
| 10 #include "ui/gfx/geometry/rect.h" |
| 11 #include "ui/gfx/geometry/rect_f.h" |
| 12 #include "ui/gfx/transform.h" |
| 13 #include "ui/gl/gl_image_io_surface.h" |
| 14 |
| 15 namespace ui { |
| 16 |
| 17 struct ACCELERATED_WIDGET_MAC_EXPORT CARendererLayerParams { |
| 18 CARendererLayerParams(bool is_clipped, |
| 19 const gfx::Rect clip_rect, |
| 20 unsigned sorting_context_id, |
| 21 const gfx::Transform transform, |
| 22 base::ScopedCFTypeRef<IOSurfaceRef> io_surface, |
| 23 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer, |
| 24 const gfx::RectF contents_rect, |
| 25 const gfx::Rect rect, |
| 26 unsigned background_color, |
| 27 unsigned edge_aa_mask, |
| 28 float opacity, |
| 29 unsigned filter); |
| 30 CARendererLayerParams(const CARendererLayerParams& other); |
| 31 ~CARendererLayerParams(); |
| 32 |
| 33 bool is_clipped; |
| 34 const gfx::Rect clip_rect; |
| 35 unsigned sorting_context_id; |
| 36 const gfx::Transform transform; |
| 37 base::ScopedCFTypeRef<IOSurfaceRef> io_surface; |
| 38 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer; |
| 39 const gfx::RectF contents_rect; |
| 40 const gfx::Rect rect; |
| 41 unsigned background_color; |
| 42 unsigned edge_aa_mask; |
| 43 float opacity; |
| 44 unsigned filter; |
| 45 }; |
| 46 |
| 47 } // namespace ui |
| 48 |
| 49 #endif // UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_PARAMS_H_ |
OLD | NEW |