Commit 801943af authored by yiyix's avatar yiyix Committed by Commit Bot

Improving readability of image_data.cc

There is lots of magic number 4 in the image_data.cc. in fact, we are
using 4 to represent that there are 4 color bit to describe each pixel,
namely, red, green, blue and alpha. Add a class level comment to
describe what 4 means in image_data.cc.

Bug: 1122866

Change-Id: I728ea5fadba3bc7f7477dbbdd35aa180872beb84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2379656Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Reviewed-by: default avatarccameron <ccameron@chromium.org>
Commit-Queue: Yi Xu <yiyix@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803954}
parent 740e1a93
......@@ -39,6 +39,8 @@
namespace blink {
// Please note that all the number "4" in the file means number of channels
// required to describe a pixel, namely, red, green, blue and alpha.
namespace {
bool RaiseDOMExceptionAndReturnFalse(ExceptionState* exception_state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment