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

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

Issue 12221116: Custom implementation of VectorPlatformDeviceEmf::drawBitmapRect, to shield it from changes in SkDe… (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 months 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 | « no previous file | 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 26 matching lines...) Expand all
37 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) OVERRIDE; 37 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) OVERRIDE;
38 virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, 38 virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
39 size_t count, const SkPoint[], 39 size_t count, const SkPoint[],
40 const SkPaint& paint) OVERRIDE; 40 const SkPaint& paint) OVERRIDE;
41 virtual void drawRect(const SkDraw& draw, const SkRect& r, 41 virtual void drawRect(const SkDraw& draw, const SkRect& r,
42 const SkPaint& paint) OVERRIDE; 42 const SkPaint& paint) OVERRIDE;
43 virtual void drawPath(const SkDraw& draw, const SkPath& path, 43 virtual void drawPath(const SkDraw& draw, const SkPath& path,
44 const SkPaint& paint, 44 const SkPaint& paint,
45 const SkMatrix* prePathMatrix = NULL, 45 const SkMatrix* prePathMatrix = NULL,
46 bool pathIsMutable = false) OVERRIDE; 46 bool pathIsMutable = false) OVERRIDE;
47 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
48 const SkRect* src, const SkRect& dst,
49 const SkPaint& paint) SK_OVERRIDE;
47 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, 50 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap,
48 const SkIRect* srcRectOrNull, 51 const SkIRect* srcRectOrNull,
49 const SkMatrix& matrix, 52 const SkMatrix& matrix,
50 const SkPaint& paint) OVERRIDE; 53 const SkPaint& paint) OVERRIDE;
51 virtual void drawSprite(const SkDraw& draw, const SkBitmap& bitmap, 54 virtual void drawSprite(const SkDraw& draw, const SkBitmap& bitmap,
52 int x, int y, const SkPaint& paint) OVERRIDE; 55 int x, int y, const SkPaint& paint) OVERRIDE;
53 virtual void drawText(const SkDraw& draw, const void* text, size_t len, 56 virtual void drawText(const SkDraw& draw, const void* text, size_t len,
54 SkScalar x, SkScalar y, const SkPaint& paint) OVERRIDE; 57 SkScalar x, SkScalar y, const SkPaint& paint) OVERRIDE;
55 virtual void drawPosText(const SkDraw& draw, const void* text, size_t len, 58 virtual void drawPosText(const SkDraw& draw, const void* text, size_t len,
56 const SkScalar pos[], SkScalar constY, 59 const SkScalar pos[], SkScalar constY,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 132
130 typedef void (*SkiaEnsureTypefaceCharactersAccessible) 133 typedef void (*SkiaEnsureTypefaceCharactersAccessible)
131 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); 134 (const LOGFONT& font, const wchar_t* text, unsigned int text_length);
132 135
133 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( 136 SK_API void SetSkiaEnsureTypefaceCharactersAccessible(
134 SkiaEnsureTypefaceCharactersAccessible func); 137 SkiaEnsureTypefaceCharactersAccessible func);
135 138
136 } // namespace skia 139 } // namespace skia
137 140
138 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 141 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698