OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/resource/resource_bundle.h" | 5 #include "ui/base/resource/resource_bundle.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/big_endian.h" | 10 #include "base/big_endian.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_util.h" | |
13 #include "base/files/file.h" | 12 #include "base/files/file.h" |
| 13 #include "base/files/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
19 #include "base/strings/string_piece.h" | 19 #include "base/strings/string_piece.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "grit/app_locale_settings.h" | 23 #include "grit/app_locale_settings.h" |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 // static | 851 // static |
852 bool ResourceBundle::DecodePNG(const unsigned char* buf, | 852 bool ResourceBundle::DecodePNG(const unsigned char* buf, |
853 size_t size, | 853 size_t size, |
854 SkBitmap* bitmap, | 854 SkBitmap* bitmap, |
855 bool* fell_back_to_1x) { | 855 bool* fell_back_to_1x) { |
856 *fell_back_to_1x = PNGContainsFallbackMarker(buf, size); | 856 *fell_back_to_1x = PNGContainsFallbackMarker(buf, size); |
857 return gfx::PNGCodec::Decode(buf, size, bitmap); | 857 return gfx::PNGCodec::Decode(buf, size, bitmap); |
858 } | 858 } |
859 | 859 |
860 } // namespace ui | 860 } // namespace ui |
OLD | NEW |