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

Unified Diff: cc/output/overlay_candidate.h

Issue 197223003: Start of hardware overlay support in CC with Ubercompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/overlay_candidate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_candidate.h
diff --git a/cc/output/overlay_candidate.h b/cc/output/overlay_candidate.h
new file mode 100644
index 0000000000000000000000000000000000000000..c53013630d66aacb0462799b84c0c1eee324b256
--- /dev/null
+++ b/cc/output/overlay_candidate.h
@@ -0,0 +1,46 @@
+// Copyright 2014 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_OVERLAY_CANDIDATE_H_
+#define CC_OUTPUT_OVERLAY_CANDIDATE_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "cc/base/cc_export.h"
+#include "cc/resources/resource_format.h"
+#include "ui/gfx/geometry/rect.h"
+
+namespace cc {
+
+struct CC_EXPORT OverlayCandidate {
+ enum OverlayTransform {
+ NONE,
+ FLIP_HORIZONTAL,
+ FLIP_VERTICAL,
+ ROTATE_90,
+ ROTATE_180,
+ ROTATE_270,
+ };
+
+ OverlayCandidate();
+ ~OverlayCandidate();
+
+ // Transformation to apply to layer during composition.
+ OverlayTransform transform;
+ // Format of the buffer to composite.
+ ResourceFormat format;
+ // Rect on the display to position the overlay to.
+ gfx::Rect display_rect;
+ // Crop within the buffer to be placed inside |display_rect|.
+ gfx::RectF uv_rect;
+
+ // To be modified by the implementer if this candidate can go into
+ // an overlay.
+ bool overlay_handled;
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/overlay_candidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698