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

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

Issue 1407133017: Cleanup some dead code in blink::ImageBuffer and friends (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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 SkCanvas* canvas() const; 97 SkCanvas* canvas() const;
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
107 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps hot() for reading
108 const SkBitmap& deprecatedBitmapForOverwrite() const;
109
110 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y); 106 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in t x, int y);
111 107
112 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } 108 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); }
113 109
114 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const ; 110 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const ;
115 111
116 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour ceSize, const IntRect& sourceRect, const IntPoint& destPoint); 112 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour ceSize, const IntRect& sourceRect, const IntPoint& destPoint);
117 113
118 AffineTransform baseTransform() const { return AffineTransform(); } 114 AffineTransform baseTransform() const { return AffineTransform(); }
119 WebLayer* platformLayer() const; 115 WebLayer* platformLayer() const;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 int height() const { return m_size.height(); } 156 int height() const { return m_size.height(); }
161 int width() const { return m_size.width(); } 157 int width() const { return m_size.width(); }
162 158
163 const unsigned char* m_data; 159 const unsigned char* m_data;
164 const IntSize m_size; 160 const IntSize m_size;
165 }; 161 };
166 162
167 } // namespace blink 163 } // namespace blink
168 164
169 #endif // ImageBuffer_h 165 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698