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

Side by Side Diff: src/android/SkBitmapRegionDecoder.cpp

Issue 1820503002: Delete SkImageDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix-animator
Patch Set: Include SkImage Created 4 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 | « include/effects/SkImageSource.h ('k') | src/core/SkBigPicture.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 "SkBitmapRegionCanvas.h" 8 #include "SkBitmapRegionCanvas.h"
9 #include "SkBitmapRegionCodec.h" 9 #include "SkBitmapRegionCodec.h"
10 #include "SkBitmapRegionDecoder.h" 10 #include "SkBitmapRegionDecoder.h"
11 #include "SkAndroidCodec.h" 11 #include "SkAndroidCodec.h"
12 #include "SkCodec.h" 12 #include "SkCodec.h"
13 #include "SkCodecPriv.h" 13 #include "SkCodecPriv.h"
14 #include "SkImageDecoder.h"
15 14
16 SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create( 15 SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create(
17 SkData* data, Strategy strategy) { 16 SkData* data, Strategy strategy) {
18 return SkBitmapRegionDecoder::Create(new SkMemoryStream(data), 17 return SkBitmapRegionDecoder::Create(new SkMemoryStream(data),
19 strategy); 18 strategy);
20 } 19 }
21 20
22 SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create( 21 SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create(
23 SkStreamRewindable* stream, Strategy strategy) { 22 SkStreamRewindable* stream, Strategy strategy) {
24 SkAutoTDelete<SkStreamRewindable> streamDeleter(stream); 23 SkAutoTDelete<SkStreamRewindable> streamDeleter(stream);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return nullptr; 66 return nullptr;
68 } 67 }
69 68
70 return new SkBitmapRegionCodec(codec.release()); 69 return new SkBitmapRegionCodec(codec.release());
71 } 70 }
72 default: 71 default:
73 SkASSERT(false); 72 SkASSERT(false);
74 return nullptr; 73 return nullptr;
75 } 74 }
76 } 75 }
OLDNEW
« no previous file with comments | « include/effects/SkImageSource.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698