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

Unified Diff: cc/output/overlay_candidate.h

Issue 1110813002: Fix assert in GetOverlayRect when transforming video with Ozone overlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes display_rect to float Created 5 years, 8 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: cc/output/overlay_candidate.h
diff --git a/cc/output/overlay_candidate.h b/cc/output/overlay_candidate.h
index 28ae8cb73d35897979db66e61e3ac5bd720069a8..bf4253190c1cc097415fdccc0a6bcc1560637701 100644
--- a/cc/output/overlay_candidate.h
+++ b/cc/output/overlay_candidate.h
@@ -24,8 +24,8 @@ class CC_EXPORT OverlayCandidate {
// or OVERLAY_TRANSFORM_INVALID.
static gfx::OverlayTransform ModifyTransform(gfx::OverlayTransform in,
gfx::OverlayTransform delta);
- static gfx::Rect GetOverlayRect(const gfx::Transform& quad_transform,
- const gfx::Rect& rect);
+ static gfx::RectF GetOverlayRect(const gfx::Transform& quad_transform,
+ const gfx::Rect& rect);
OverlayCandidate();
~OverlayCandidate();
@@ -35,7 +35,7 @@ class CC_EXPORT OverlayCandidate {
// Format of the buffer to composite.
ResourceFormat format;
// Rect on the display to position the overlay to.
- gfx::Rect display_rect;
+ gfx::RectF display_rect;
// Crop within the buffer to be placed inside |display_rect|.
gfx::RectF uv_rect;
// Texture resource to present in an overlay.

Powered by Google App Engine
This is Rietveld 408576698