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

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

Issue 416093002: Use GraphicContext::drawImageBuffer in FEBlend (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; Merge rebaselines. Created 6 years, 5 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 | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('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 (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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 void drawImage(Image*, const FloatRect& destRect); 286 void drawImage(Image*, const FloatRect& destRect);
287 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp ectImageOrientation); 287 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp ectImageOrientation);
288 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe ctImageOrientation); 288 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe ctImageOrientation);
289 289
290 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize, 290 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin t, const IntSize& tileSize,
291 CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We bBlendModeNormal, const IntSize& repeatSpacing = IntSize()); 291 CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We bBlendModeNormal, const IntSize& repeatSpacing = IntSize());
292 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 292 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect,
293 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile, 293 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile,
294 CompositeOperator = CompositeSourceOver); 294 CompositeOperator = CompositeSourceOver);
295 295
296 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec t* srcRect = 0, CompositeOperator = CompositeSourceOver); 296 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend ModeNormal);
297 297
298 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe ct& src, CompositeOperator, blink::WebBlendMode); 298 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe ct& src, CompositeOperator, blink::WebBlendMode);
299 299
300 // These methods write to the canvas and modify the opaque region, if tracke d. 300 // These methods write to the canvas and modify the opaque region, if tracke d.
301 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect 301 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect
302 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y); 302 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y);
303 void writePixels(const SkBitmap&, int x, int y); 303 void writePixels(const SkBitmap&, int x, int y);
304 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); 304 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0);
305 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP aint* = 0); 305 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP aint* = 0);
306 void drawOval(const SkRect&, const SkPaint&); 306 void drawOval(const SkRect&, const SkPaint&);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 bool m_updatingControlTints : 1; 537 bool m_updatingControlTints : 1;
538 bool m_accelerated : 1; 538 bool m_accelerated : 1;
539 bool m_isCertainlyOpaque : 1; 539 bool m_isCertainlyOpaque : 1;
540 bool m_printing : 1; 540 bool m_printing : 1;
541 bool m_antialiasHairlineImages : 1; 541 bool m_antialiasHairlineImages : 1;
542 }; 542 };
543 543
544 } // namespace blink 544 } // namespace blink
545 545
546 #endif // GraphicsContext_h 546 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698