Give names to the shading types
authorDan Sinclair <dsinclair@chromium.org>
Tue, 27 Oct 2015 17:18:28 +0000 (13:18 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Tue, 27 Oct 2015 17:18:28 +0000 (13:18 -0400)
commit468974316ed5f6b6f8e637ab2c7afedc7c2bfe6a
tree68f68e677e0b6b0b8597e314324921cde97f419d
parente6eae266a48cdcfd464f52df68c97183a4f7987a
Give names to the shading types

Currently the shading types are referenced by number. This Cl creates and enum
and updates the code to use the enum names instead of magic numbers.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1418623011 .
core/include/fpdfapi/fpdf_resource.h
core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp