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

Side by Side Diff: ui/gfx/transform_skia.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/transform.h ('k') | ui/gfx/transform_skia.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/transform.h ('k') | ui/gfx/transform_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698