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

Unified Diff: ui/gfx/transform_skia.cc

Issue 6993002: Adds assignment operator like function to Transform. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « ui/gfx/transform_skia.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform_skia.cc
diff --git a/ui/gfx/transform_skia.cc b/ui/gfx/transform_skia.cc
index 5d33ec83d7d5b58e2f2aa3d5a2c8c1f09fc3eae6..021ede6db503404a2d10956688a567fa3d0f8558 100644
--- a/ui/gfx/transform_skia.cc
+++ b/ui/gfx/transform_skia.cc
@@ -101,4 +101,8 @@ bool TransformSkia::TransformRect(gfx::Rect* rect) {
return true;
}
+void TransformSkia::Copy(const Transform& transform) {
+ *matrix_ = *(static_cast<const TransformSkia&>(transform).matrix_);
+}
+
} // namespace ui
« no previous file with comments | « ui/gfx/transform_skia.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698