aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrShape.cpp4
-rw-r--r--src/gpu/GrStyle.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrShape.cpp b/src/gpu/GrShape.cpp
index bb9c186fe3..3b49f6ae7f 100644
--- a/src/gpu/GrShape.cpp
+++ b/src/gpu/GrShape.cpp
@@ -32,8 +32,8 @@ GrShape& GrShape::operator=(const GrShape& that) {
break;
}
fInheritedKey.reset(that.fInheritedKey.count());
- memcpy(fInheritedKey.get(), that.fInheritedKey.get(),
- sizeof(uint32_t) * fInheritedKey.count());
+ sk_careful_memcpy(fInheritedKey.get(), that.fInheritedKey.get(),
+ sizeof(uint32_t) * fInheritedKey.count());
return *this;
}
diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h
index 3ed4448441..d63df32290 100644
--- a/src/gpu/GrStyle.h
+++ b/src/gpu/GrStyle.h
@@ -159,8 +159,8 @@ private:
fType = that.fType;
fPhase = that.fPhase;
fIntervals.reset(that.fIntervals.count());
- memcpy(fIntervals.get(), that.fIntervals.get(),
- sizeof(SkScalar) * that.fIntervals.count());
+ sk_careful_memcpy(fIntervals.get(), that.fIntervals.get(),
+ sizeof(SkScalar) * that.fIntervals.count());
return *this;
}
void reset() {