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

Side by Side Diff: include/device/xps/SkXPSDevice.h

Issue 988413003: Change device creation to see the (optional) layer-paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address comments Created 5 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkXPSDevice_DEFINED 8 #ifndef SkXPSDevice_DEFINED
9 #define SkXPSDevice_DEFINED 9 #define SkXPSDevice_DEFINED
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 SkXfermode* xmode, 128 SkXfermode* xmode,
129 const uint16_t indices[], int indexCount, 129 const uint16_t indices[], int indexCount,
130 const SkPaint& paint) SK_OVERRIDE; 130 const SkPaint& paint) SK_OVERRIDE;
131 131
132 virtual void drawDevice( 132 virtual void drawDevice(
133 const SkDraw&, 133 const SkDraw&,
134 SkBaseDevice* device, 134 SkBaseDevice* device,
135 int x, int y, 135 int x, int y,
136 const SkPaint& paint) SK_OVERRIDE; 136 const SkPaint& paint) SK_OVERRIDE;
137 137
138 bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE;
139
140 private: 138 private:
141 class TypefaceUse : ::SkNoncopyable { 139 class TypefaceUse : ::SkNoncopyable {
142 public: 140 public:
143 SkFontID typefaceId; 141 SkFontID typefaceId;
144 int ttcIndex; 142 int ttcIndex;
145 SkStream* fontData; 143 SkStream* fontData;
146 IXpsOMFontResource* xpsFont; 144 IXpsOMFontResource* xpsFont;
147 SkBitSet* glyphsUsed; 145 SkBitSet* glyphsUsed;
148 146
149 explicit TypefaceUse(); 147 explicit TypefaceUse();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 SkMatrix* matrix, 302 SkMatrix* matrix,
305 SkVector* ppuScale, 303 SkVector* ppuScale,
306 const SkIRect& clip, SkIRect* clipIRect); 304 const SkIRect& clip, SkIRect* clipIRect);
307 305
308 HRESULT applyMask( 306 HRESULT applyMask(
309 const SkDraw& d, 307 const SkDraw& d,
310 const SkMask& mask, 308 const SkMask& mask,
311 const SkVector& ppuScale, 309 const SkVector& ppuScale,
312 IXpsOMPath* shadedPath); 310 IXpsOMPath* shadedPath);
313 311
314 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; 312 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) SK_OVERRIDE;
315 313
316 // Disable the default copy and assign implementation. 314 // Disable the default copy and assign implementation.
317 SkXPSDevice(const SkXPSDevice&); 315 SkXPSDevice(const SkXPSDevice&);
318 void operator=(const SkXPSDevice&); 316 void operator=(const SkXPSDevice&);
319 317
320 typedef SkBitmapDevice INHERITED; 318 typedef SkBitmapDevice INHERITED;
321 }; 319 };
322 320
323 #endif 321 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698