summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.h
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2016-10-07 15:59:20 -0400
committerMike Reed <reed@google.com>2016-10-13 17:14:52 -0400
commit260ab726486317496bc12a57d599ea96dcde3284 (patch)
treebe150530fd0597507dddf3a670f2480563dd1e00 /libs/hwui/Layer.h
parentccbc5c183067ae988f57725cfafda855bafa47ec (diff)
use SkBlendMode instead of SkXfermode
use sk_sp versions of paint setters/getters Change-Id: I86591a0a8ec92e6039776cbf00424ea24f585b28
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r--libs/hwui/Layer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h
index 01650ef5745f..9874ce29cb3c 100644
--- a/libs/hwui/Layer.h
+++ b/libs/hwui/Layer.h
@@ -28,7 +28,7 @@
#include <ui/Region.h>
#include <SkPaint.h>
-#include <SkXfermode.h>
+#include <SkBlendMode.h>
#include "Matrix.h"
#include "Rect.h"
@@ -98,7 +98,7 @@ public:
this->alpha = alpha;
}
- inline void setAlpha(int alpha, SkXfermode::Mode mode) {
+ inline void setAlpha(int alpha, SkBlendMode mode) {
this->alpha = alpha;
this->mode = mode;
}
@@ -107,7 +107,7 @@ public:
return alpha;
}
- inline SkXfermode::Mode getMode() const {
+ inline SkBlendMode getMode() const {
return mode;
}
@@ -208,7 +208,7 @@ private:
/**
* Blending mode of the layer.
*/
- SkXfermode::Mode mode = SkXfermode::kSrcOver_Mode;
+ SkBlendMode mode = SkBlendMode::kSrcOver;
/**
* Optional texture coordinates transform.