Index: ui/accelerated_widget_mac/ca_renderer_layer_params.h |
diff --git a/ui/accelerated_widget_mac/ca_renderer_layer_params.h b/ui/accelerated_widget_mac/ca_renderer_layer_params.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5935758c3dbd5176d4d96465723db249ed8230c5 |
--- /dev/null |
+++ b/ui/accelerated_widget_mac/ca_renderer_layer_params.h |
@@ -0,0 +1,49 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_PARAMS_H_ |
+#define UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_PARAMS_H_ |
+ |
+#include "base/mac/scoped_cftyperef.h" |
+#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
+#include "ui/gfx/geometry/rect.h" |
+#include "ui/gfx/geometry/rect_f.h" |
+#include "ui/gfx/transform.h" |
+#include "ui/gl/gl_image_io_surface.h" |
+ |
+namespace ui { |
+ |
+struct ACCELERATED_WIDGET_MAC_EXPORT CARendererLayerParams { |
+ CARendererLayerParams(bool is_clipped, |
+ const gfx::Rect clip_rect, |
+ unsigned sorting_context_id, |
+ const gfx::Transform transform, |
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface, |
+ base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer, |
+ const gfx::RectF contents_rect, |
+ const gfx::Rect rect, |
+ unsigned background_color, |
+ unsigned edge_aa_mask, |
+ float opacity, |
+ unsigned filter); |
+ CARendererLayerParams(const CARendererLayerParams& other); |
+ ~CARendererLayerParams(); |
+ |
+ bool is_clipped; |
+ const gfx::Rect clip_rect; |
+ unsigned sorting_context_id; |
+ const gfx::Transform transform; |
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface; |
+ base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer; |
+ const gfx::RectF contents_rect; |
+ const gfx::Rect rect; |
+ unsigned background_color; |
+ unsigned edge_aa_mask; |
+ float opacity; |
+ unsigned filter; |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_PARAMS_H_ |