OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 GFX_CANVAS_SKIA_H_ | 5 #ifndef GFX_CANVAS_SKIA_H_ |
6 #define GFX_CANVAS_SKIA_H_ | 6 #define GFX_CANVAS_SKIA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "gfx/canvas.h" | 10 #include "gfx/canvas.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Overridden from Canvas: | 86 // Overridden from Canvas: |
87 virtual void Save(); | 87 virtual void Save(); |
88 virtual void SaveLayerAlpha(uint8 alpha); | 88 virtual void SaveLayerAlpha(uint8 alpha); |
89 virtual void SaveLayerAlpha(uint8 alpha, const gfx::Rect& layer_bounds); | 89 virtual void SaveLayerAlpha(uint8 alpha, const gfx::Rect& layer_bounds); |
90 virtual void Restore(); | 90 virtual void Restore(); |
91 virtual bool ClipRectInt(int x, int y, int w, int h); | 91 virtual bool ClipRectInt(int x, int y, int w, int h); |
92 virtual void TranslateInt(int x, int y); | 92 virtual void TranslateInt(int x, int y); |
93 virtual void ScaleInt(int x, int y); | 93 virtual void ScaleInt(int x, int y); |
94 virtual void FillRectInt(const SkColor& color, int x, int y, int w, int h); | 94 virtual void FillRectInt(const SkColor& color, int x, int y, int w, int h); |
| 95 virtual void FillRectInt(const SkColor& color, int x, int y, int w, int h, |
| 96 SkXfermode::Mode mode); |
95 virtual void FillRectInt(const gfx::Brush* brush, int x, int y, int w, int h); | 97 virtual void FillRectInt(const gfx::Brush* brush, int x, int y, int w, int h); |
96 virtual void DrawRectInt(const SkColor& color, int x, int y, int w, int h); | 98 virtual void DrawRectInt(const SkColor& color, int x, int y, int w, int h); |
97 virtual void DrawRectInt(const SkColor& color, | 99 virtual void DrawRectInt(const SkColor& color, |
98 int x, int y, int w, int h, | 100 int x, int y, int w, int h, |
99 SkXfermode::Mode mode); | 101 SkXfermode::Mode mode); |
100 virtual void DrawRectInt(int x, int y, int w, int h, const SkPaint& paint); | 102 virtual void DrawRectInt(int x, int y, int w, int h, const SkPaint& paint); |
101 virtual void DrawLineInt(const SkColor& color, | 103 virtual void DrawLineInt(const SkColor& color, |
102 int x1, int y1, | 104 int x1, int y1, |
103 int x2, int y2); | 105 int x2, int y2); |
104 virtual void DrawBitmapInt(const SkBitmap& bitmap, int x, int y); | 106 virtual void DrawBitmapInt(const SkBitmap& bitmap, int x, int y); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 int x, int y, int w, int h, | 153 int x, int y, int w, int h, |
152 int flags); | 154 int flags); |
153 #endif | 155 #endif |
154 | 156 |
155 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); | 157 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); |
156 }; | 158 }; |
157 | 159 |
158 } // namespace gfx; | 160 } // namespace gfx; |
159 | 161 |
160 #endif // GFX_CANVAS_SKIA_H_ | 162 #endif // GFX_CANVAS_SKIA_H_ |
OLD | NEW |