summaryrefslogtreecommitdiffstats
path: root/chromium/cc/layers/draw_properties.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-24 11:40:17 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-24 12:42:11 +0000
commit5d87695f37678f96492b258bbab36486c59866b4 (patch)
treebe9783bbaf04fb930c4d74ca9c00b5e7954c8bc6 /chromium/cc/layers/draw_properties.h
parent6c11fb357ec39bf087b8b632e2b1e375aef1b38b (diff)
BASELINE: Update Chromium to 75.0.3770.56
Change-Id: I86d2007fd27a45d5797eee06f4c9369b8b50ac4f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/cc/layers/draw_properties.h')
-rw-r--r--chromium/cc/layers/draw_properties.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/cc/layers/draw_properties.h b/chromium/cc/layers/draw_properties.h
index f5c7a6cfead..1b96435e988 100644
--- a/chromium/cc/layers/draw_properties.h
+++ b/chromium/cc/layers/draw_properties.h
@@ -11,6 +11,7 @@
#include "cc/trees/occlusion.h"
#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/rrect_f.h"
#include "ui/gfx/transform.h"
namespace cc {
@@ -44,6 +45,10 @@ struct CC_EXPORT DrawProperties {
// True if the layer needs to be clipped by clip_rect.
bool is_clipped;
+ // If set, it makes the layer's rounded corner not trigger a render surface if
+ // possible.
+ bool is_fast_rounded_corner;
+
// This rect is a bounding box around what part of the layer is visible, in
// the layer's coordinate space.
gfx::Rect visible_layer_rect;
@@ -55,6 +60,10 @@ struct CC_EXPORT DrawProperties {
// In target surface space, the original rect that clipped this layer. This
// value is used to avoid unnecessarily changing GL scissor state.
gfx::Rect clip_rect;
+
+ // Contains a rounded corner rect to clip this layer when drawing. This rrect
+ // is in the target space of the layer.
+ gfx::RRectF rounded_corner_bounds;
};
} // namespace cc