Merge to XFA: Give names to the shading types
authorDan Sinclair <dsinclair@chromium.org>
Tue, 27 Oct 2015 17:24:54 +0000 (13:24 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Tue, 27 Oct 2015 17:24:54 +0000 (13:24 -0400)
commitc5fd3e95fbc42f41479f803e4f2f0b4a7c4fc612
treeac7aed27b7ec568b2d86863d8845beb0017dbb3e
parenteb815bf1c91d74bb03df52f8f7c586d2b2130341
Merge to XFA: 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 .

(cherry picked from commit 468974316ed5f6b6f8e637ab2c7afedc7c2bfe6a)

Review URL: https://codereview.chromium.org/1428573002 .
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