diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-09-26 16:59:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-27 16:10:58 +0000 |
commit | cc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1 (patch) | |
tree | 17dfe1c2d050542e883028ead986f017c240e038 /core/fxcodec/lgif/fx_gif.cpp | |
parent | d6a1595e0bd8f2d0677e2e59e9e0ac6678aaa0d1 (diff) | |
download | pdfium-cc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1.tar.xz |
Make names of GIF types less opaque
A lot of the structs in the GIF code use acronyms that are non-obvious
unless you are familar with the GIF spec, and even then lead to lots
of looking back. Making the naming more explicit. Also converted
GifImage to be a struct, since it didn't have any methods defined for
it.
BUG=pdfium:903
Change-Id: I97ca2adfdc4ada8bcaef5f8f317c1dea7365d70d
Reviewed-on: https://pdfium-review.googlesource.com/14836
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/lgif/fx_gif.cpp')
-rw-r--r-- | core/fxcodec/lgif/fx_gif.cpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/core/fxcodec/lgif/fx_gif.cpp b/core/fxcodec/lgif/fx_gif.cpp index db0744a6bb..b8e5cb8994 100644 --- a/core/fxcodec/lgif/fx_gif.cpp +++ b/core/fxcodec/lgif/fx_gif.cpp @@ -6,23 +6,13 @@ #include "core/fxcodec/lgif/fx_gif.h" -#include <algorithm> -#include <utility> - -#include "core/fxcodec/lbmp/fx_bmp.h" -#include "core/fxcodec/lgif/cgifcontext.h" -#include "third_party/base/logging.h" -#include "third_party/base/ptr_util.h" -#include "third_party/base/stl_util.h" - static_assert(sizeof(GifImageInfo) == 9, "GifImageInfo should have a size of 9"); static_assert(sizeof(GifPalette) == 3, "GifPalette should have a size of 3"); -static_assert(sizeof(GifPTE) == 13, "GifPTE should have a size of 13"); -static_assert(sizeof(GifGCE) == 5, "GifGCE should have a size of 5"); +static_assert(sizeof(GifPlainTextExtension) == 13, + "GifPlainTextExtension should have a size of 13"); +static_assert(sizeof(GifGraphicControlExtension) == 5, + "GifGraphicControlExtension should have a size of 5"); static_assert(sizeof(GifHeader) == 6, "GifHeader should have a size of 6"); -static_assert(sizeof(GifLSD) == 7, "GifLSD should have a size of 7"); - -GifImage::GifImage() {} - -GifImage::~GifImage() {} +static_assert(sizeof(GifLocalScreenDescriptor) == 7, + "GifLocalScreenDescriptor should have a size of 7"); |