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

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

Issue 363933002: setConfig is deprecated, use setInfo or allocPixels instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/skia_utils_ios.mm ('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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const SkPaint& paint) OVERRIDE; 72 const SkPaint& paint) OVERRIDE;
73 virtual void drawDevice(const SkDraw& draw, SkBaseDevice*, int x, int y, 73 virtual void drawDevice(const SkDraw& draw, SkBaseDevice*, int x, int y,
74 const SkPaint&) OVERRIDE; 74 const SkPaint&) OVERRIDE;
75 75
76 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, 76 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region,
77 const SkClipStack&) OVERRIDE; 77 const SkClipStack&) OVERRIDE;
78 78
79 void LoadClipRegion(); 79 void LoadClipRegion();
80 80
81 protected: 81 protected:
82 #ifdef SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG
83 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
84 int height, bool isOpaque,
85 Usage usage) OVERRIDE;
86 #endif
87 virtual SkBaseDevice* onCreateDevice(const SkImageInfo& info, 82 virtual SkBaseDevice* onCreateDevice(const SkImageInfo& info,
88 Usage usage) OVERRIDE; 83 Usage usage) OVERRIDE;
89 84
90 private: 85 private:
91 // Applies the SkPaint's painting properties in the current GDI context, if 86 // Applies the SkPaint's painting properties in the current GDI context, if
92 // possible. If GDI can't support all paint's properties, returns false. It 87 // possible. If GDI can't support all paint's properties, returns false. It
93 // doesn't execute the "commands" in SkPaint. 88 // doesn't execute the "commands" in SkPaint.
94 bool ApplyPaint(const SkPaint& paint); 89 bool ApplyPaint(const SkPaint& paint);
95 90
96 // Selects a new object in the device context. It can be a pen, a brush, a 91 // Selects a new object in the device context. It can be a pen, a brush, a
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 134
140 typedef void (*SkiaEnsureTypefaceCharactersAccessible) 135 typedef void (*SkiaEnsureTypefaceCharactersAccessible)
141 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); 136 (const LOGFONT& font, const wchar_t* text, unsigned int text_length);
142 137
143 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( 138 SK_API void SetSkiaEnsureTypefaceCharactersAccessible(
144 SkiaEnsureTypefaceCharactersAccessible func); 139 SkiaEnsureTypefaceCharactersAccessible func);
145 140
146 } // namespace skia 141 } // namespace skia
147 142
148 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 143 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_ios.mm ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698