| 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_DIRECT2D_H_ | 5 #ifndef UI_GFX_CANVAS_DIRECT2D_H_ |
| 6 #define UI_GFX_CANVAS_DIRECT2D_H_ | 6 #define UI_GFX_CANVAS_DIRECT2D_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <d2d1.h> | 9 #include <d2d1.h> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int x, int y, int w, int h); | 63 int x, int y, int w, int h); |
| 64 virtual void DrawStringInt(const string16& text, | 64 virtual void DrawStringInt(const string16& text, |
| 65 const gfx::Font& font, | 65 const gfx::Font& font, |
| 66 const SkColor& color, | 66 const SkColor& color, |
| 67 const gfx::Rect& display_rect); | 67 const gfx::Rect& display_rect); |
| 68 virtual void DrawStringInt(const string16& text, | 68 virtual void DrawStringInt(const string16& text, |
| 69 const gfx::Font& font, | 69 const gfx::Font& font, |
| 70 const SkColor& color, | 70 const SkColor& color, |
| 71 int x, int y, int w, int h, | 71 int x, int y, int w, int h, |
| 72 int flags); | 72 int flags); |
| 73 virtual void DrawStringInt(const RenderText& render_text); |
| 73 virtual void DrawFocusRect(int x, int y, int width, int height); | 74 virtual void DrawFocusRect(int x, int y, int width, int height); |
| 74 virtual void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h); | 75 virtual void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h); |
| 75 virtual void TileImageInt(const SkBitmap& bitmap, | 76 virtual void TileImageInt(const SkBitmap& bitmap, |
| 76 int src_x, int src_y, | 77 int src_x, int src_y, |
| 77 int dest_x, int dest_y, int w, int h); | 78 int dest_x, int dest_y, int w, int h); |
| 78 virtual gfx::NativeDrawingContext BeginPlatformPaint(); | 79 virtual gfx::NativeDrawingContext BeginPlatformPaint(); |
| 79 virtual void EndPlatformPaint(); | 80 virtual void EndPlatformPaint(); |
| 80 virtual void Transform(const ui::Transform& transform); | 81 virtual void Transform(const ui::Transform& transform); |
| 81 virtual ui::TextureID GetTextureID(); | 82 virtual ui::TextureID GetTextureID(); |
| 82 virtual CanvasSkia* AsCanvasSkia(); | 83 virtual CanvasSkia* AsCanvasSkia(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 105 int clip_count; | 106 int clip_count; |
| 106 }; | 107 }; |
| 107 std::stack<RenderState> state_; | 108 std::stack<RenderState> state_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(CanvasDirect2D); | 110 DISALLOW_COPY_AND_ASSIGN(CanvasDirect2D); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace gfx; | 113 } // namespace gfx; |
| 113 | 114 |
| 114 #endif // UI_GFX_CANVAS_DIRECT2D_H_ | 115 #endif // UI_GFX_CANVAS_DIRECT2D_H_ |
| OLD | NEW |