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

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

Issue 201513003: Implement InterpolationMedium to filter animated images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: only ode change Created 6 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 | Annotate | Revision Log
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 void strokeRect(const FloatRect&, float lineWidth); 238 void strokeRect(const FloatRect&, float lineWidth);
239 239
240 void fillBetweenRoundedRects(const IntRect&, const IntSize& outerTopLeft, co nst IntSize& outerTopRight, const IntSize& outerBottomLeft, const IntSize& outer BottomRight, 240 void fillBetweenRoundedRects(const IntRect&, const IntSize& outerTopLeft, co nst IntSize& outerTopRight, const IntSize& outerBottomLeft, const IntSize& outer BottomRight,
241 const IntRect&, const IntSize& innerTopLeft, const IntSize& innerTopRigh t, const IntSize& innerBottomLeft, const IntSize& innerBottomRight, const Color& ); 241 const IntRect&, const IntSize& innerTopLeft, const IntSize& innerTopRigh t, const IntSize& innerBottomLeft, const IntSize& innerBottomRight, const Color& );
242 void fillBetweenRoundedRects(const RoundedRect&, const RoundedRect&, const C olor&); 242 void fillBetweenRoundedRects(const RoundedRect&, const RoundedRect&, const C olor&);
243 243
244 void drawDisplayList(DisplayList*); 244 void drawDisplayList(DisplayList*);
245 245
246 void drawImage(Image*, const IntPoint&, CompositeOperator = CompositeSourceO ver, RespectImageOrientationEnum = DoNotRespectImageOrientation); 246 void drawImage(Image*, const IntPoint&, CompositeOperator = CompositeSourceO ver, RespectImageOrientationEnum = DoNotRespectImageOrientation);
247 void drawImage(Image*, const IntRect&, CompositeOperator = CompositeSourceOv er, RespectImageOrientationEnum = DoNotRespectImageOrientation, bool useLowQuali tyScale = false); 247 void drawImage(Image*, const IntRect&, CompositeOperator = CompositeSourceOv er, RespectImageOrientationEnum = DoNotRespectImageOrientation);
248 void drawImage(Image*, const FloatRect& destRect); 248 void drawImage(Image*, const FloatRect& destRect);
249 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp ectImageOrientation, bool useLowQualityScale = false); 249 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp ectImageOrientation);
250 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe ctImageOrientation, bool useLowQualityScale = false); 250 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe ctImageOrientation);
251 251
252 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize, 252 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize,
253 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false , blink::WebBlendMode = blink::WebBlendModeNormal, const IntSize& repeatSpacing = IntSize()); 253 CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We bBlendModeNormal, const IntSize& repeatSpacing = IntSize());
254 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 254 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect,
255 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile, 255 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile,
256 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false ); 256 CompositeOperator = CompositeSourceOver);
257 257
258 void drawImageBuffer(ImageBuffer*, const IntPoint&, CompositeOperator = Comp ositeSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal); 258 void drawImageBuffer(ImageBuffer*, const IntPoint&, CompositeOperator = Comp ositeSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal);
259 void drawImageBuffer(ImageBuffer*, const IntRect&, CompositeOperator = Compo siteSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal, bool useLowQual ityScale = false); 259 void drawImageBuffer(ImageBuffer*, const IntRect&, CompositeOperator = Compo siteSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal);
260 void drawImageBuffer(ImageBuffer*, const IntPoint& destPoint, const IntRect& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink:: WebBlendModeNormal); 260 void drawImageBuffer(ImageBuffer*, const IntPoint& destPoint, const IntRect& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink:: WebBlendModeNormal);
261 void drawImageBuffer(ImageBuffer*, const IntRect& destRect, const IntRect& s rcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We bBlendModeNormal, bool useLowQualityScale = false); 261 void drawImageBuffer(ImageBuffer*, const IntRect& destRect, const IntRect& s rcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We bBlendModeNormal);
262 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect); 262 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect);
263 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec t& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink ::WebBlendModeNormal, bool useLowQualityScale = false); 263 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec t& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink ::WebBlendModeNormal);
264 264
265 // These methods write to the canvas and modify the opaque region, if tracke d. 265 // These methods write to the canvas and modify the opaque region, if tracke d.
266 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect 266 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect
267 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y); 267 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y);
268 void writePixels(const SkBitmap&, int x, int y); 268 void writePixels(const SkBitmap&, int x, int y);
269 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); 269 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0);
270 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP aint* = 0); 270 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP aint* = 0);
271 void drawOval(const SkRect&, const SkPaint&); 271 void drawOval(const SkRect&, const SkPaint&);
272 void drawPath(const SkPath&, const SkPaint&); 272 void drawPath(const SkPath&, const SkPaint&);
273 // After drawing directly to the context's canvas, use this function to noti fy the context so 273 // After drawing directly to the context's canvas, use this function to noti fy the context so
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // FIXME: Make this go away: crbug.com/236892 501 // FIXME: Make this go away: crbug.com/236892
502 bool m_updatingControlTints : 1; 502 bool m_updatingControlTints : 1;
503 bool m_accelerated : 1; 503 bool m_accelerated : 1;
504 bool m_isCertainlyOpaque : 1; 504 bool m_isCertainlyOpaque : 1;
505 bool m_printing : 1; 505 bool m_printing : 1;
506 }; 506 };
507 507
508 } // namespace WebCore 508 } // namespace WebCore
509 509
510 #endif // GraphicsContext_h 510 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698