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

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

Issue 1432443004: Remove SkDevice and SkBaseDevice outside skia/ext/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void disableDeferral() const; 98 void disableDeferral() const;
99 99
100 // Called at the end of a task that rendered a whole frame 100 // Called at the end of a task that rendered a whole frame
101 void finalizeFrame(const FloatRect &dirtyRect); 101 void finalizeFrame(const FloatRect &dirtyRect);
102 void didFinalizeFrame(); 102 void didFinalizeFrame();
103 103
104 bool isDirty(); 104 bool isDirty();
105 105
106 // FIXME: crbug.com/485243 106 // FIXME: crbug.com/485243
107 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps hot() for reading 107 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps hot() for reading
108 const SkBitmap& deprecatedBitmapForOverwrite() const; 108 const SkBitmap deprecatedBitmapForOverwrite() const;
109 109
110 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y); 110 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y);
111 111
112 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } 112 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); }
113 113
114 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const ; 114 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const ;
115 115
116 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour ceSize, const IntRect& sourceRect, const IntPoint& destPoint); 116 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour ceSize, const IntRect& sourceRect, const IntPoint& destPoint);
117 117
118 AffineTransform baseTransform() const { return AffineTransform(); } 118 AffineTransform baseTransform() const { return AffineTransform(); }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 int height() const { return m_size.height(); } 160 int height() const { return m_size.height(); }
161 int width() const { return m_size.width(); } 161 int width() const { return m_size.width(); }
162 162
163 const unsigned char* m_data; 163 const unsigned char* m_data;
164 const IntSize m_size; 164 const IntSize m_size;
165 }; 165 };
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif // ImageBuffer_h 169 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698