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

Side by Side Diff: skia/ext/vector_platform_device_emf_win.h

Issue 58933005: Override drawRRect in fake SkBitmapDevices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « skia/ext/analysis_canvas.cc ('k') | skia/ext/vector_platform_device_emf_win.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 SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "skia/ext/platform_device.h" 10 #include "skia/ext/platform_device.h"
(...skipping 24 matching lines...) Expand all
35 virtual void DrawToNativeContext(HDC dc, int x, int y, 35 virtual void DrawToNativeContext(HDC dc, int x, int y,
36 const RECT* src_rect) OVERRIDE; 36 const RECT* src_rect) OVERRIDE;
37 // SkBaseDevice methods. 37 // SkBaseDevice methods.
38 virtual uint32_t getDeviceCapabilities(); 38 virtual uint32_t getDeviceCapabilities();
39 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) OVERRIDE; 39 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) OVERRIDE;
40 virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, 40 virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
41 size_t count, const SkPoint[], 41 size_t count, const SkPoint[],
42 const SkPaint& paint) OVERRIDE; 42 const SkPaint& paint) OVERRIDE;
43 virtual void drawRect(const SkDraw& draw, const SkRect& r, 43 virtual void drawRect(const SkDraw& draw, const SkRect& r,
44 const SkPaint& paint) OVERRIDE; 44 const SkPaint& paint) OVERRIDE;
45 virtual void drawRRect(const SkDraw&, const SkRRect& rr,
46 const SkPaint& paint) OVERRIDE;
45 virtual void drawPath(const SkDraw& draw, const SkPath& path, 47 virtual void drawPath(const SkDraw& draw, const SkPath& path,
46 const SkPaint& paint, 48 const SkPaint& paint,
47 const SkMatrix* prePathMatrix = NULL, 49 const SkMatrix* prePathMatrix = NULL,
48 bool pathIsMutable = false) OVERRIDE; 50 bool pathIsMutable = false) OVERRIDE;
49 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, 51 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
50 const SkRect* src, const SkRect& dst, 52 const SkRect* src, const SkRect& dst,
51 const SkPaint& paint, 53 const SkPaint& paint,
52 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE; 54 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE;
53 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, 55 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap,
54 const SkMatrix& matrix, 56 const SkMatrix& matrix,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 136
135 typedef void (*SkiaEnsureTypefaceCharactersAccessible) 137 typedef void (*SkiaEnsureTypefaceCharactersAccessible)
136 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); 138 (const LOGFONT& font, const wchar_t* text, unsigned int text_length);
137 139
138 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( 140 SK_API void SetSkiaEnsureTypefaceCharactersAccessible(
139 SkiaEnsureTypefaceCharactersAccessible func); 141 SkiaEnsureTypefaceCharactersAccessible func);
140 142
141 } // namespace skia 143 } // namespace skia
142 144
143 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 145 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
OLDNEW
« no previous file with comments | « skia/ext/analysis_canvas.cc ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698