OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 outTransformOperations->appendMatrix( | 102 outTransformOperations->appendMatrix( |
103 TransformationMatrix::toSkMatrix44(m)); | 103 TransformationMatrix::toSkMatrix44(m)); |
104 break; | 104 break; |
105 } | 105 } |
106 case TransformOperation::Perspective: { | 106 case TransformOperation::Perspective: { |
107 auto transform = | 107 auto transform = |
108 static_cast<const PerspectiveTransformOperation*>(operation.get()); | 108 static_cast<const PerspectiveTransformOperation*>(operation.get()); |
109 outTransformOperations->appendPerspective(transform->perspective()); | 109 outTransformOperations->appendPerspective(transform->perspective()); |
110 break; | 110 break; |
111 } | 111 } |
| 112 case TransformOperation::RotateAroundOrigin: |
112 case TransformOperation::Interpolated: { | 113 case TransformOperation::Interpolated: { |
113 TransformationMatrix m; | 114 TransformationMatrix m; |
114 operation->apply(m, FloatSize()); | 115 operation->apply(m, FloatSize()); |
115 outTransformOperations->appendMatrix( | 116 outTransformOperations->appendMatrix( |
116 TransformationMatrix::toSkMatrix44(m)); | 117 TransformationMatrix::toSkMatrix44(m)); |
117 break; | 118 break; |
118 } | 119 } |
119 case TransformOperation::Identity: | 120 case TransformOperation::Identity: |
120 outTransformOperations->appendIdentity(); | 121 outTransformOperations->appendIdentity(); |
121 break; | 122 break; |
122 case TransformOperation::None: | 123 case TransformOperation::None: |
123 // Do nothing. | 124 // Do nothing. |
124 break; | 125 break; |
125 } // switch | 126 } // switch |
126 } // for each operation | 127 } // for each operation |
127 } | 128 } |
128 | 129 |
129 } // namespace blink | 130 } // namespace blink |
OLD | NEW |