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

Unified Diff: Source/platform/image-decoders/bmp/BMPImageReader.h

Issue 872683008: Small cleanup on BMPImageReader.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/bmp/BMPImageReader.h
diff --git a/Source/platform/image-decoders/bmp/BMPImageReader.h b/Source/platform/image-decoders/bmp/BMPImageReader.h
index 82f5074dd3b506da1aea010503af1c1cc5cb628b..50fa23f47093e8ec7a71807bc070e670d9045b5e 100644
--- a/Source/platform/image-decoders/bmp/BMPImageReader.h
+++ b/Source/platform/image-decoders/bmp/BMPImageReader.h
@@ -263,6 +263,12 @@ private:
setRGBA(red, green, blue, alpha);
}
+ // File header size + info header size in bytes.
+ inline size_t sizeOfHeaderAndInfoHeader() const
Peter Kasting 2015/02/03 23:56:43 Don't add this. Do it inline in the places you ca
changseok 2015/02/04 04:10:32 Done.
+ {
+ return m_headerOffset + m_infoHeader.biSize;
+ }
+
// Resets the relevant local variables to start drawing at the left edge
// of the "next" row, where "next" is above or below the current row
// depending on the value of |m_isTopDown|.

Powered by Google App Engine
This is Rietveld 408576698