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

Side by Side Diff: third_party/WebKit/Source/platform/transforms/AffineTransform.h

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 2010 Dirk Schulze <krit@webkit.org> 3 * 2010 Dirk Schulze <krit@webkit.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 private: 191 private:
192 void setMatrix(const Transform m) 192 void setMatrix(const Transform m)
193 { 193 {
194 if (m && m != m_transform) 194 if (m && m != m_transform)
195 memcpy(m_transform, m, sizeof(Transform)); 195 memcpy(m_transform, m, sizeof(Transform));
196 } 196 }
197 197
198 Transform m_transform; 198 Transform m_transform;
199 }; 199 };
200 200
201 // Redeclared here to avoid ODR issues. 201 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const AffineTransform&);
202 // See platform/testing/TransformPrinters.h.
203 void PrintTo(const AffineTransform&, std::ostream*);
204 202
205 } // namespace blink 203 } // namespace blink
206 204
207 #endif 205 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698