Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: src/codec/SkCodec_libico.h

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkCodec_libbmp.h ('k') | src/codec/SkCodec_libpng.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCodec.h" 8 #include "SkCodec.h"
9 #include "SkImageInfo.h" 9 #include "SkImageInfo.h"
10 #include "SkStream.h" 10 #include "SkStream.h"
(...skipping 15 matching lines...) Expand all
26 * Creates an Ico decoder 26 * Creates an Ico decoder
27 * Reads enough of the stream to determine the image format 27 * Reads enough of the stream to determine the image format
28 */ 28 */
29 static SkCodec* NewFromStream(SkStream*); 29 static SkCodec* NewFromStream(SkStream*);
30 30
31 protected: 31 protected:
32 32
33 /* 33 /*
34 * Chooses the best dimensions given the desired scale 34 * Chooses the best dimensions given the desired scale
35 */ 35 */
36 SkISize onGetScaledDimensions(float desiredScale) const SK_OVERRIDE; 36 SkISize onGetScaledDimensions(float desiredScale) const override;
37 37
38 /* 38 /*
39 * Initiates the Ico decode 39 * Initiates the Ico decode
40 */ 40 */
41 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, 41 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
42 size_t dstRowBytes, const Options&, SkPMColor*, int*) 42 size_t dstRowBytes, const Options&, SkPMColor*, int*)
43 SK_OVERRIDE; 43 override;
44 44
45 SkEncodedFormat onGetEncodedFormat() const SK_OVERRIDE { 45 SkEncodedFormat onGetEncodedFormat() const override {
46 return kICO_SkEncodedFormat; 46 return kICO_SkEncodedFormat;
47 } 47 }
48 48
49 private: 49 private:
50 50
51 /* 51 /*
52 * Constructor called by NewFromStream 52 * Constructor called by NewFromStream
53 * @param embeddedCodecs codecs for the embedded images, takes ownership 53 * @param embeddedCodecs codecs for the embedded images, takes ownership
54 */ 54 */
55 SkIcoCodec(const SkImageInfo& srcInfo, 55 SkIcoCodec(const SkImageInfo& srcInfo,
56 SkTArray<SkAutoTDelete<SkCodec>, true>* embeddedCodecs); 56 SkTArray<SkAutoTDelete<SkCodec>, true>* embeddedCodecs);
57 57
58 SkAutoTDelete<SkTArray<SkAutoTDelete<SkCodec>, true>> 58 SkAutoTDelete<SkTArray<SkAutoTDelete<SkCodec>, true>>
59 fEmbeddedCodecs; // owned 59 fEmbeddedCodecs; // owned
60 60
61 typedef SkCodec INHERITED; 61 typedef SkCodec INHERITED;
62 }; 62 };
OLDNEW
« no previous file with comments | « src/codec/SkCodec_libbmp.h ('k') | src/codec/SkCodec_libpng.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698