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

Unified Diff: ui/gl/ca_renderer_layer_params.h

Issue 2006923006: Move all CARendererLayerTree parameters to separate struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/ca_renderer_layer_params.h
diff --git a/ui/gl/ca_renderer_layer_params.h b/ui/gl/ca_renderer_layer_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b3db08e9f32ecf83eec7b2c021a5f2f14f36a74
--- /dev/null
+++ b/ui/gl/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_GL_CA_RENDERER_LAYER_PARAMS_H_
+#define UI_GL_CA_RENDERER_LAYER_PARAMS_H_
+
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/geometry/rect_f.h"
+#include "ui/gfx/transform.h"
+#include "ui/gl/gl_export.h"
+
+namespace gl {
+class GLImage;
+}
+
+namespace ui {
+
+struct GL_EXPORT CARendererLayerParams {
+ CARendererLayerParams(bool is_clipped,
+ const gfx::Rect clip_rect,
+ unsigned sorting_context_id,
+ const gfx::Transform transform,
+ gl::GLImage* image,
+ 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;
+ gl::GLImage* image;
+ const gfx::RectF contents_rect;
+ const gfx::Rect rect;
+ unsigned background_color;
+ unsigned edge_aa_mask;
+ float opacity;
+ unsigned filter;
+};
+
+} // namespace ui
+
+#endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698