diff options
Diffstat (limited to 'chromium/ui/gfx/codec')
-rw-r--r-- | chromium/ui/gfx/codec/jpeg_codec.cc | 1 | ||||
-rw-r--r-- | chromium/ui/gfx/codec/png_codec.cc | 11 | ||||
-rw-r--r-- | chromium/ui/gfx/codec/vector_wstream.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/chromium/ui/gfx/codec/jpeg_codec.cc b/chromium/ui/gfx/codec/jpeg_codec.cc index ea7c0dcab69..d1fbdd7f562 100644 --- a/chromium/ui/gfx/codec/jpeg_codec.cc +++ b/chromium/ui/gfx/codec/jpeg_codec.cc @@ -7,6 +7,7 @@ #include <setjmp.h> #include <memory> +#include <ostream> #include "base/notreached.h" #include "third_party/skia/include/core/SkBitmap.h" diff --git a/chromium/ui/gfx/codec/png_codec.cc b/chromium/ui/gfx/codec/png_codec.cc index f2176e92024..bcaaaa38f36 100644 --- a/chromium/ui/gfx/codec/png_codec.cc +++ b/chromium/ui/gfx/codec/png_codec.cc @@ -8,6 +8,7 @@ #include "base/logging.h" #include "base/macros.h" +#include "base/notreached.h" #include "base/strings/string_util.h" #include "third_party/libpng/png.h" #include "third_party/skia/include/core/SkBitmap.h" @@ -39,13 +40,12 @@ class PngDecoderState { PngDecoderState(PNGCodec::ColorFormat ofmt, std::vector<unsigned char>* o) : output_format(ofmt), output_channels(0), - bitmap(NULL), + bitmap(nullptr), is_opaque(true), output(o), width(0), height(0), - done(false) { - } + done(false) {} // Output is an SkBitmap. explicit PngDecoderState(SkBitmap* skbitmap) @@ -53,11 +53,10 @@ class PngDecoderState { output_channels(0), bitmap(skbitmap), is_opaque(true), - output(NULL), + output(nullptr), width(0), height(0), - done(false) { - } + done(false) {} PNGCodec::ColorFormat output_format; int output_channels; diff --git a/chromium/ui/gfx/codec/vector_wstream.h b/chromium/ui/gfx/codec/vector_wstream.h index 5a20c470e1a..56f9712a6d6 100644 --- a/chromium/ui/gfx/codec/vector_wstream.h +++ b/chromium/ui/gfx/codec/vector_wstream.h @@ -9,7 +9,7 @@ #include <vector> -#include "base/logging.h" +#include "base/check_op.h" #include "third_party/skia/include/core/SkStream.h" namespace gfx { |