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_DIRECT2D_H_ | 5 #ifndef GFX_CANVAS_DIRECT2D_H_ |
6 #define GFX_CANVAS_DIRECT2D_H_ | 6 #define GFX_CANVAS_DIRECT2D_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <d2d1.h> | 9 #include <d2d1.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // Overridden from Canvas: | 27 // Overridden from Canvas: |
28 virtual void Save(); | 28 virtual void Save(); |
29 virtual void SaveLayerAlpha(uint8 alpha); | 29 virtual void SaveLayerAlpha(uint8 alpha); |
30 virtual void SaveLayerAlpha(uint8 alpha, const gfx::Rect& layer_bounds); | 30 virtual void SaveLayerAlpha(uint8 alpha, const gfx::Rect& layer_bounds); |
31 virtual void Restore(); | 31 virtual void Restore(); |
32 virtual bool ClipRectInt(int x, int y, int w, int h); | 32 virtual bool ClipRectInt(int x, int y, int w, int h); |
33 virtual void TranslateInt(int x, int y); | 33 virtual void TranslateInt(int x, int y); |
34 virtual void ScaleInt(int x, int y); | 34 virtual void ScaleInt(int x, int y); |
35 virtual void FillRectInt(const SkColor& color, int x, int y, int w, int h); | 35 virtual void FillRectInt(const SkColor& color, int x, int y, int w, int h); |
| 36 virtual void FillRectInt(const SkColor& color, int x, int y, int w, int h, |
| 37 SkXfermode::Mode mode); |
36 virtual void FillRectInt(const gfx::Brush* brush, int x, int y, int w, int h); | 38 virtual void FillRectInt(const gfx::Brush* brush, int x, int y, int w, int h); |
37 virtual void DrawRectInt(const SkColor& color, int x, int y, int w, int h); | 39 virtual void DrawRectInt(const SkColor& color, int x, int y, int w, int h); |
38 virtual void DrawRectInt(const SkColor& color, | 40 virtual void DrawRectInt(const SkColor& color, |
39 int x, int y, int w, int h, | 41 int x, int y, int w, int h, |
40 SkXfermode::Mode mode); | 42 SkXfermode::Mode mode); |
41 virtual void DrawRectInt(int x, int y, int w, int h, const SkPaint& paint); | 43 virtual void DrawRectInt(int x, int y, int w, int h, const SkPaint& paint); |
42 virtual void DrawLineInt(const SkColor& color, | 44 virtual void DrawLineInt(const SkColor& color, |
43 int x1, int y1, | 45 int x1, int y1, |
44 int x2, int y2); | 46 int x2, int y2); |
45 virtual void DrawBitmapInt(const SkBitmap& bitmap, int x, int y); | 47 virtual void DrawBitmapInt(const SkBitmap& bitmap, int x, int y); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 int clip_count; | 103 int clip_count; |
102 }; | 104 }; |
103 std::stack<RenderState> state_; | 105 std::stack<RenderState> state_; |
104 | 106 |
105 DISALLOW_COPY_AND_ASSIGN(CanvasDirect2D); | 107 DISALLOW_COPY_AND_ASSIGN(CanvasDirect2D); |
106 }; | 108 }; |
107 | 109 |
108 } // namespace gfx; | 110 } // namespace gfx; |
109 | 111 |
110 #endif // GFX_CANVAS_DIRECT2D_H_ | 112 #endif // GFX_CANVAS_DIRECT2D_H_ |
OLD | NEW |