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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 1478283002: Less type conversion for NinePieceImage painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void strokeRect(const FloatRect&, float lineWidth); 157 void strokeRect(const FloatRect&, float lineWidth);
158 158
159 void drawPicture(const SkPicture*); 159 void drawPicture(const SkPicture*);
160 void compositePicture(SkPicture*, const FloatRect& dest, const FloatRect& sr c, SkXfermode::Mode); 160 void compositePicture(SkPicture*, const FloatRect& dest, const FloatRect& sr c, SkXfermode::Mode);
161 161
162 void drawImage(Image*, const IntRect&, SkXfermode::Mode = SkXfermode::kSrcOv er_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation); 162 void drawImage(Image*, const IntRect&, SkXfermode::Mode = SkXfermode::kSrcOv er_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation);
163 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientationEnum = DoNo tRespectImageOrientation); 163 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientationEnum = DoNo tRespectImageOrientation);
164 164
165 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize, 165 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize,
166 SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const IntSize& repeatSpaci ng = IntSize()); 166 SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const IntSize& repeatSpaci ng = IntSize());
167 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 167 void drawTiledImage(Image*, const FloatRect& destRect, const FloatRect& srcR ect,
168 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile, 168 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile,
169 SkXfermode::Mode = SkXfermode::kSrcOver_Mode); 169 SkXfermode::Mode = SkXfermode::kSrcOver_Mode);
170 170
171 // These methods write to the canvas. 171 // These methods write to the canvas.
172 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect 172 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect
173 void drawOval(const SkRect&, const SkPaint&); 173 void drawOval(const SkRect&, const SkPaint&);
174 void drawPath(const SkPath&, const SkPaint&); 174 void drawPath(const SkPath&, const SkPaint&);
175 void drawRect(const SkRect&, const SkPaint&); 175 void drawRect(const SkRect&, const SkPaint&);
176 176
177 void clip(const IntRect& rect) { clipRect(rect); } 177 void clip(const IntRect& rect) { clipRect(rect); }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 365
366 float m_deviceScaleFactor; 366 float m_deviceScaleFactor;
367 367
368 unsigned m_printing : 1; 368 unsigned m_printing : 1;
369 unsigned m_hasMetaData : 1; 369 unsigned m_hasMetaData : 1;
370 }; 370 };
371 371
372 } // namespace blink 372 } // namespace blink
373 373
374 #endif // GraphicsContext_h 374 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698