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

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

Issue 168653002: Change device factories to take SkImageInfo instead of SkBitmap::Config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix PdfViewer Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkDevice.h ('k') | include/gpu/SkGpuDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 SkMatrix* matrix, 305 SkMatrix* matrix,
306 SkVector* ppuScale, 306 SkVector* ppuScale,
307 const SkIRect& clip, SkIRect* clipIRect); 307 const SkIRect& clip, SkIRect* clipIRect);
308 308
309 HRESULT applyMask( 309 HRESULT applyMask(
310 const SkDraw& d, 310 const SkDraw& d,
311 const SkMask& mask, 311 const SkMask& mask,
312 const SkVector& ppuScale, 312 const SkVector& ppuScale,
313 IXpsOMPath* shadedPath); 313 IXpsOMPath* shadedPath);
314 314
315 // override from SkBaseDevice 315 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE;
316 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config,
317 int width, int height,
318 bool isOpaque,
319 Usage usage) SK_OVERRIDE;
320 316
321 // Disable the default copy and assign implementation. 317 // Disable the default copy and assign implementation.
322 SkXPSDevice(const SkXPSDevice&); 318 SkXPSDevice(const SkXPSDevice&);
323 void operator=(const SkXPSDevice&); 319 void operator=(const SkXPSDevice&);
324 320
325 typedef SkBitmapDevice INHERITED; 321 typedef SkBitmapDevice INHERITED;
326 }; 322 };
327 323
328 #endif 324 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/gpu/SkGpuDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698