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_CANVAS_SKIA_H_ | 5 #ifndef UI_GFX_CANVAS_SKIA_H_ |
6 #define UI_GFX_CANVAS_SKIA_H_ | 6 #define UI_GFX_CANVAS_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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 virtual void Restore() OVERRIDE; | 102 virtual void Restore() OVERRIDE; |
103 virtual bool ClipRect(const gfx::Rect& rect) OVERRIDE; | 103 virtual bool ClipRect(const gfx::Rect& rect) OVERRIDE; |
104 virtual void Translate(const gfx::Point& point) OVERRIDE; | 104 virtual void Translate(const gfx::Point& point) OVERRIDE; |
105 virtual void Scale(int x_scale, int y_scale) OVERRIDE; | 105 virtual void Scale(int x_scale, int y_scale) OVERRIDE; |
106 virtual void FillRect(const SkColor& color, const gfx::Rect& rect) OVERRIDE; | 106 virtual void FillRect(const SkColor& color, const gfx::Rect& rect) OVERRIDE; |
107 virtual void FillRect(const SkColor& color, | 107 virtual void FillRect(const SkColor& color, |
108 const gfx::Rect& rect, | 108 const gfx::Rect& rect, |
109 SkXfermode::Mode mode) OVERRIDE; | 109 SkXfermode::Mode mode) OVERRIDE; |
110 virtual void FillRect(const gfx::Brush* brush, | 110 virtual void FillRect(const gfx::Brush* brush, |
111 const gfx::Rect& rect) OVERRIDE; | 111 const gfx::Rect& rect) OVERRIDE; |
112 virtual void DrawRect(const gfx::Rect& rect, const SkColor& color) OVERRIDE; | 112 virtual void DrawRectInt(const SkColor& color, |
113 virtual void DrawRect(const gfx::Rect& rect, | 113 int x, int y, int w, int h) OVERRIDE; |
114 const SkColor& color, | 114 virtual void DrawRectInt(const SkColor& color, |
115 SkXfermode::Mode mode) OVERRIDE; | 115 int x, int y, int w, int h, |
116 virtual void DrawRect(const gfx::Rect& rect, const SkPaint& paint) OVERRIDE; | 116 SkXfermode::Mode mode) OVERRIDE; |
| 117 virtual void DrawRectInt(int x, int y, int w, int h, |
| 118 const SkPaint& paint) OVERRIDE; |
117 virtual void DrawLineInt(const SkColor& color, | 119 virtual void DrawLineInt(const SkColor& color, |
118 int x1, int y1, | 120 int x1, int y1, |
119 int x2, int y2) OVERRIDE; | 121 int x2, int y2) OVERRIDE; |
120 virtual void DrawBitmapInt(const SkBitmap& bitmap, int x, int y) OVERRIDE; | 122 virtual void DrawBitmapInt(const SkBitmap& bitmap, int x, int y) OVERRIDE; |
121 virtual void DrawBitmapInt(const SkBitmap& bitmap, | 123 virtual void DrawBitmapInt(const SkBitmap& bitmap, |
122 int x, int y, | 124 int x, int y, |
123 const SkPaint& paint) OVERRIDE; | 125 const SkPaint& paint) OVERRIDE; |
124 virtual void DrawBitmapInt(const SkBitmap& bitmap, | 126 virtual void DrawBitmapInt(const SkBitmap& bitmap, |
125 int src_x, int src_y, int src_w, int src_h, | 127 int src_x, int src_y, int src_w, int src_h, |
126 int dest_x, int dest_y, int dest_w, int dest_h, | 128 int dest_x, int dest_y, int dest_w, int dest_h, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 195 |
194 scoped_ptr<skia::PlatformCanvas> owned_canvas_; | 196 scoped_ptr<skia::PlatformCanvas> owned_canvas_; |
195 SkCanvas* canvas_; | 197 SkCanvas* canvas_; |
196 | 198 |
197 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); | 199 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); |
198 }; | 200 }; |
199 | 201 |
200 } // namespace gfx | 202 } // namespace gfx |
201 | 203 |
202 #endif // UI_GFX_CANVAS_SKIA_H_ | 204 #endif // UI_GFX_CANVAS_SKIA_H_ |
OLD | NEW |