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

Side by Side Diff: Source/platform/geometry/TransformState.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 #define TransformState_h 27 #define TransformState_h
28 28
29 #include "platform/geometry/FloatPoint.h" 29 #include "platform/geometry/FloatPoint.h"
30 #include "platform/geometry/FloatQuad.h" 30 #include "platform/geometry/FloatQuad.h"
31 #include "platform/geometry/IntSize.h" 31 #include "platform/geometry/IntSize.h"
32 #include "platform/geometry/LayoutSize.h" 32 #include "platform/geometry/LayoutSize.h"
33 #include "platform/transforms/AffineTransform.h" 33 #include "platform/transforms/AffineTransform.h"
34 #include "platform/transforms/TransformationMatrix.h" 34 #include "platform/transforms/TransformationMatrix.h"
35 #include "wtf/OwnPtr.h" 35 #include "wtf/OwnPtr.h"
36 36
37 namespace WebCore { 37 namespace blink {
38 38
39 class PLATFORM_EXPORT TransformState { 39 class PLATFORM_EXPORT TransformState {
40 public: 40 public:
41 enum TransformDirection { ApplyTransformDirection, UnapplyInverseTransformDi rection }; 41 enum TransformDirection { ApplyTransformDirection, UnapplyInverseTransformDi rection };
42 enum TransformAccumulation { FlattenTransform, AccumulateTransform }; 42 enum TransformAccumulation { FlattenTransform, AccumulateTransform };
43 43
44 TransformState(TransformDirection mappingDirection, const FloatPoint& p, con st FloatQuad& quad) 44 TransformState(TransformDirection mappingDirection, const FloatPoint& p, con st FloatQuad& quad)
45 : m_lastPlanarPoint(p) 45 : m_lastPlanarPoint(p)
46 , m_lastPlanarQuad(quad) 46 , m_lastPlanarQuad(quad)
47 , m_accumulatingTransform(false) 47 , m_accumulatingTransform(false)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 FloatQuad m_lastPlanarQuad; 110 FloatQuad m_lastPlanarQuad;
111 111
112 // We only allocate the transform if we need to 112 // We only allocate the transform if we need to
113 OwnPtr<TransformationMatrix> m_accumulatedTransform; 113 OwnPtr<TransformationMatrix> m_accumulatedTransform;
114 LayoutSize m_accumulatedOffset; 114 LayoutSize m_accumulatedOffset;
115 bool m_accumulatingTransform; 115 bool m_accumulatingTransform;
116 bool m_mapPoint, m_mapQuad; 116 bool m_mapPoint, m_mapQuad;
117 TransformDirection m_direction; 117 TransformDirection m_direction;
118 }; 118 };
119 119
120 } // namespace WebCore 120 } // namespace blink
121 121
122 #endif // TransformState_h 122 #endif // TransformState_h
OLDNEW
« no previous file with comments | « Source/platform/geometry/RoundedRectTest.cpp ('k') | Source/platform/geometry/TransformState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698