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

Unified Diff: cc/output/ca_layer_overlay.h

Issue 1430813002: cc: Fork OverlayCandidate to CALayerOverlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master1
Patch Set: Rebase Created 5 years, 1 month 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/ca_layer_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/ca_layer_overlay.h
diff --git a/cc/output/ca_layer_overlay.h b/cc/output/ca_layer_overlay.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd7d68f173c21a3a076775ee70d674d91d0e61bf
--- /dev/null
+++ b/cc/output/ca_layer_overlay.h
@@ -0,0 +1,49 @@
+// Copyright 2015 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 CC_OUTPUT_CA_LAYER_OVERLAY_H_
+#define CC_OUTPUT_CA_LAYER_OVERLAY_H_
+
+#include "cc/quads/render_pass.h"
+#include "third_party/skia/include/core/SkColor.h"
+#include "third_party/skia/include/utils/SkMatrix44.h"
+#include "ui/gfx/geometry/rect_f.h"
+
+namespace cc {
+
+class DrawQuad;
+class ResourceProvider;
+
+class CC_EXPORT CALayerOverlay {
+ public:
+ CALayerOverlay();
+ ~CALayerOverlay();
+
+ // Texture that corresponds to an IOSurface to set as the content of the
+ // CALayer. If this is 0 then the CALayer is a solid color.
+ unsigned contents_resource_id;
+ // The contents rect property for the CALayer.
+ gfx::RectF contents_rect;
+ // The opacity property for the CAayer.
+ float opacity;
+ // The background color property for the CALayer.
+ SkColor background_color;
+ // The bounds for the CALayer in pixels.
+ gfx::SizeF bounds_size;
+ // The transform to apply to the CALayer.
+ SkMatrix44 transform;
+};
+
+typedef std::vector<CALayerOverlay> CALayerOverlayList;
+
+// Returns true if all quads in the root render pass have been replaced by
+// CALayerOverlays.
+bool ProcessForCALayerOverlays(ResourceProvider* resource_provider,
+ const gfx::RectF& display_rect,
+ const QuadList& quad_list,
+ CALayerOverlayList* ca_layer_overlays);
+
+} // namespace cc
+
+#endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/ca_layer_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698