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

Unified Diff: cc/resources/compositing_display_item.h

Issue 952123002: Add layer bounds to compositing_dislay_item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove implicit pointer to bool conversion Created 5 years, 10 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/resources/compositing_display_item.h
diff --git a/cc/resources/compositing_display_item.h b/cc/resources/compositing_display_item.h
index 5e485bc6a780c8115c2062e42f4e3b06dcf45b1a..fd42a37db255ec5e7bf1952cedadecd11b54c5a1 100644
--- a/cc/resources/compositing_display_item.h
+++ b/cc/resources/compositing_display_item.h
@@ -10,6 +10,7 @@
#include "cc/resources/display_item.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkColorFilter.h"
+#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -25,9 +26,10 @@ class CC_EXPORT CompositingDisplayItem : public DisplayItem {
static scoped_ptr<CompositingDisplayItem> Create(
float opacity,
SkXfermode::Mode xfermode,
+ SkRect* bounds,
skia::RefPtr<SkColorFilter> color_filter) {
return make_scoped_ptr(
- new CompositingDisplayItem(opacity, xfermode, color_filter));
+ new CompositingDisplayItem(opacity, xfermode, bounds, color_filter));
}
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
@@ -40,11 +42,14 @@ class CC_EXPORT CompositingDisplayItem : public DisplayItem {
protected:
CompositingDisplayItem(float opacity,
SkXfermode::Mode,
+ SkRect* bounds,
skia::RefPtr<SkColorFilter>);
private:
float opacity_;
SkXfermode::Mode xfermode_;
+ bool has_bounds_;
+ SkRect bounds_;
skia::RefPtr<SkColorFilter> color_filter_;
};

Powered by Google App Engine
This is Rietveld 408576698