| Index: third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.h
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.h b/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.h
|
| index a078ee5d1ca0580cff1d59c94f08f7269d61957e..b257e1bd57839544bf1afe320bf33f2cd4b33416 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.h
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.h
|
| @@ -54,20 +54,20 @@ class PLATFORM_EXPORT FastSharedBufferReader final {
|
| void SetData(PassRefPtr<SegmentReader>);
|
|
|
| // Returns a consecutive buffer that carries the data starting
|
| - // at |dataPosition| with |length| bytes.
|
| + // at |data_position| with |length| bytes.
|
| // This method returns a pointer to a memory segment stored in
|
| - // |m_data| if such a consecutive buffer can be found.
|
| + // |data_| if such a consecutive buffer can be found.
|
| // Otherwise copies into |buffer| and returns it.
|
| - // Caller must ensure there are enough bytes in |m_data| and |buffer|.
|
| + // Caller must ensure there are enough bytes in |data_| and |buffer|.
|
| const char* GetConsecutiveData(size_t data_position,
|
| size_t length,
|
| char* buffer) const;
|
|
|
| - // Wraps SegmentReader::getSomeData().
|
| + // Wraps SegmentReader::GetSomeData().
|
| size_t GetSomeData(const char*& some_data, size_t data_position) const;
|
|
|
| - // Returns a byte at |dataPosition|.
|
| - // Caller must ensure there are enough bytes in |m_data|.
|
| + // Returns a byte at |data_position|.
|
| + // Caller must ensure there are enough bytes in |data_|.
|
| inline char GetOneByte(size_t data_position) const {
|
| return *GetConsecutiveData(data_position, 1, 0);
|
| }
|
| @@ -76,7 +76,7 @@ class PLATFORM_EXPORT FastSharedBufferReader final {
|
|
|
| // This class caches the last access for faster subsequent reads. This
|
| // method clears that cache in case the SegmentReader has been modified
|
| - // (e.g. with mergeSegmentsIntoBuffer on a wrapped SharedBuffer).
|
| + // (e.g. with MergeSegmentsIntoBuffer on a wrapped SharedBuffer).
|
| void ClearCache();
|
|
|
| private:
|
| @@ -84,12 +84,12 @@ class PLATFORM_EXPORT FastSharedBufferReader final {
|
|
|
| RefPtr<SegmentReader> data_;
|
|
|
| - // Caches the last segment of |m_data| accessed, since subsequent reads are
|
| + // Caches the last segment of |data_| accessed, since subsequent reads are
|
| // likely to re-access it.
|
| mutable const char* segment_;
|
| mutable size_t segment_length_;
|
|
|
| - // Data position in |m_data| pointed to by |m_segment|.
|
| + // Data position in |data_| pointed to by |segment_|.
|
| mutable size_t data_position_;
|
| };
|
|
|
|
|