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

Unified Diff: Source/platform/image-decoders/FastSharedBufferReader.cpp

Issue 1309363006: Mark FastSharedBufferReader's methods const (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@noConsolidateBMP
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/image-decoders/FastSharedBufferReader.cpp
diff --git a/Source/platform/image-decoders/FastSharedBufferReader.cpp b/Source/platform/image-decoders/FastSharedBufferReader.cpp
index c4a8107012523bc5da80c7fcd7102378e31d11c3..63024c9eb091e8c0c5a502c9f566bb41dfaa1669 100644
--- a/Source/platform/image-decoders/FastSharedBufferReader.cpp
+++ b/Source/platform/image-decoders/FastSharedBufferReader.cpp
@@ -51,7 +51,7 @@ void FastSharedBufferReader::setData(PassRefPtr<SharedBuffer> data)
m_dataPosition = 0;
}
-const char* FastSharedBufferReader::getConsecutiveData(size_t dataPosition, size_t length, char* buffer)
+const char* FastSharedBufferReader::getConsecutiveData(size_t dataPosition, size_t length, char* buffer) const
{
RELEASE_ASSERT(dataPosition + length <= m_data->size());
@@ -77,14 +77,14 @@ const char* FastSharedBufferReader::getConsecutiveData(size_t dataPosition, size
}
}
-size_t FastSharedBufferReader::getSomeData(const char*& someData, size_t dataPosition)
+size_t FastSharedBufferReader::getSomeData(const char*& someData, size_t dataPosition) const
{
getSomeDataInternal(dataPosition);
someData = m_segment;
return m_segmentLength;
}
-void FastSharedBufferReader::getSomeDataInternal(unsigned dataPosition)
+void FastSharedBufferReader::getSomeDataInternal(unsigned dataPosition) const
{
m_dataPosition = dataPosition;
m_segmentLength = m_data->getSomeData(m_segment, dataPosition);
« no previous file with comments | « Source/platform/image-decoders/FastSharedBufferReader.h ('k') | Source/platform/image-decoders/bmp/BMPImageReader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698