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

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

Issue 1334703002: NOT FOR LANDING Pass URL to Image::draw (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 (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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void fillDRRect(const FloatRoundedRect&, const FloatRoundedRect&, const Colo r&); 166 void fillDRRect(const FloatRoundedRect&, const FloatRoundedRect&, const Colo r&);
167 167
168 void clearRect(const FloatRect&); 168 void clearRect(const FloatRect&);
169 169
170 void strokeRect(const FloatRect&); 170 void strokeRect(const FloatRect&);
171 void strokeRect(const FloatRect&, float lineWidth); 171 void strokeRect(const FloatRect&, float lineWidth);
172 172
173 void drawPicture(const SkPicture*); 173 void drawPicture(const SkPicture*);
174 void compositePicture(SkPicture*, const FloatRect& dest, const FloatRect& sr c, SkXfermode::Mode); 174 void compositePicture(SkPicture*, const FloatRect& dest, const FloatRect& sr c, SkXfermode::Mode);
175 175
176 void drawImage(Image*, const IntRect&, SkXfermode::Mode = SkXfermode::kSrcOv er_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation); 176 void drawImage(Image*, const IntRect&, const KURL&, SkXfermode::Mode = SkXfe rmode::kSrcOver_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation );
177 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientationEnum = DoNo tRespectImageOrientation); 177 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, const KURL&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientati onEnum = DoNotRespectImageOrientation);
178 178
179 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize, 179 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize,
180 SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const IntSize& repeatSpaci ng = IntSize()); 180 const KURL&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const IntSize & repeatSpacing = IntSize());
181 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 181 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect,
182 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile, 182 const FloatSize& tileScaleFactor, const KURL&, Image::TileRule hRule = I mage::StretchTile, Image::TileRule vRule = Image::StretchTile,
183 SkXfermode::Mode = SkXfermode::kSrcOver_Mode); 183 SkXfermode::Mode = SkXfermode::kSrcOver_Mode);
184 184
185 // These methods write to the canvas. 185 // These methods write to the canvas.
186 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect 186 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect
187 void drawOval(const SkRect&, const SkPaint&); 187 void drawOval(const SkRect&, const SkPaint&);
188 void drawPath(const SkPath&, const SkPaint&); 188 void drawPath(const SkPath&, const SkPaint&);
189 void drawRect(const SkRect&, const SkPaint&); 189 void drawRect(const SkRect&, const SkPaint&);
190 190
191 void clip(const IntRect& rect) { clipRect(rect); } 191 void clip(const IntRect& rect) { clipRect(rect); }
192 void clip(const FloatRect& rect) { clipRect(rect); } 192 void clip(const FloatRect& rect) { clipRect(rect); }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 391
392 float m_deviceScaleFactor; 392 float m_deviceScaleFactor;
393 393
394 unsigned m_printing : 1; 394 unsigned m_printing : 1;
395 unsigned m_hasMetaData : 1; 395 unsigned m_hasMetaData : 1;
396 }; 396 };
397 397
398 } // namespace blink 398 } // namespace blink
399 399
400 #endif // GraphicsContext_h 400 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GradientGeneratedImage.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698