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

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

Issue 657293004: Remove unused GC::writePixels() wrapper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unit test helper Created 6 years, 2 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile, 278 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch Tile, Image::TileRule vRule = Image::StretchTile,
279 CompositeOperator = CompositeSourceOver); 279 CompositeOperator = CompositeSourceOver);
280 280
281 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend ModeNormal); 281 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend ModeNormal);
282 282
283 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe ct& src, CompositeOperator, WebBlendMode); 283 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe ct& src, CompositeOperator, WebBlendMode);
284 284
285 // These methods write to the canvas and modify the opaque region, if tracke d. 285 // These methods write to the canvas and modify the opaque region, if tracke d.
286 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect 286 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou ndedRect
287 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y); 287 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y);
288 void writePixels(const SkBitmap&, int x, int y);
289 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); 288 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0);
290 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP aint* = 0); 289 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP aint* = 0);
291 void drawOval(const SkRect&, const SkPaint&); 290 void drawOval(const SkRect&, const SkPaint&);
292 void drawPath(const SkPath&, const SkPaint&); 291 void drawPath(const SkPath&, const SkPaint&);
293 // After drawing directly to the context's canvas, use this function to noti fy the context so 292 // After drawing directly to the context's canvas, use this function to noti fy the context so
294 // it can track the opaque region. 293 // it can track the opaque region.
295 // FIXME: this is still needed only because ImageSkia::paintSkBitmap() may n eed to notify for a 294 // FIXME: this is still needed only because ImageSkia::paintSkBitmap() may n eed to notify for a
296 // smaller rect than the one drawn to, due to its clipping logic. 295 // smaller rect than the one drawn to, due to its clipping logic.
297 void didDrawRect(const SkRect&, const SkPaint&, const SkBitmap* = 0); 296 void didDrawRect(const SkRect&, const SkPaint&, const SkBitmap* = 0);
298 void drawRect(const SkRect&, const SkPaint&); 297 void drawRect(const SkRect&, const SkPaint&);
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 bool m_accelerated : 1; 512 bool m_accelerated : 1;
514 bool m_isCertainlyOpaque : 1; 513 bool m_isCertainlyOpaque : 1;
515 bool m_printing : 1; 514 bool m_printing : 1;
516 bool m_antialiasHairlineImages : 1; 515 bool m_antialiasHairlineImages : 1;
517 bool m_shouldSmoothFonts : 1; 516 bool m_shouldSmoothFonts : 1;
518 }; 517 };
519 518
520 } // namespace blink 519 } // namespace blink
521 520
522 #endif // GraphicsContext_h 521 #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