| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_TRANSFORM_SKIA_H_ | 5 #ifndef UI_GFX_TRANSFORM_SKIA_H_ |
| 6 #define UI_GFX_TRANSFORM_SKIA_H_ | 6 #define UI_GFX_TRANSFORM_SKIA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual void SetTranslateY(float y) OVERRIDE; | 34 virtual void SetTranslateY(float y) OVERRIDE; |
| 35 virtual void SetTranslate(float x, float y) OVERRIDE; | 35 virtual void SetTranslate(float x, float y) OVERRIDE; |
| 36 virtual void ConcatRotate(float degree) OVERRIDE; | 36 virtual void ConcatRotate(float degree) OVERRIDE; |
| 37 virtual void ConcatScale(float x, float y) OVERRIDE; | 37 virtual void ConcatScale(float x, float y) OVERRIDE; |
| 38 virtual void ConcatTranslate(float x, float y) OVERRIDE; | 38 virtual void ConcatTranslate(float x, float y) OVERRIDE; |
| 39 virtual bool ConcatTransform(const Transform& transform) OVERRIDE; | 39 virtual bool ConcatTransform(const Transform& transform) OVERRIDE; |
| 40 virtual bool HasChange() const OVERRIDE; | 40 virtual bool HasChange() const OVERRIDE; |
| 41 virtual bool TransformPoint(gfx::Point* point) OVERRIDE; | 41 virtual bool TransformPoint(gfx::Point* point) OVERRIDE; |
| 42 virtual bool TransformPointReverse(gfx::Point* point) OVERRIDE; | 42 virtual bool TransformPointReverse(gfx::Point* point) OVERRIDE; |
| 43 virtual bool TransformRect(gfx::Rect* rect) OVERRIDE; | 43 virtual bool TransformRect(gfx::Rect* rect) OVERRIDE; |
| 44 virtual void Copy(const Transform& transform) OVERRIDE; |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 friend class gfx::CanvasSkia; | 47 friend class gfx::CanvasSkia; |
| 47 scoped_ptr<SkMatrix> matrix_; | 48 scoped_ptr<SkMatrix> matrix_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(TransformSkia); | 50 DISALLOW_COPY_AND_ASSIGN(TransformSkia); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace ui | 53 } // namespace ui |
| 53 | 54 |
| 54 #endif // UI_GFX_TRANSFORM_SKIA_H_ | 55 #endif // UI_GFX_TRANSFORM_SKIA_H_ |
| OLD | NEW |