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

Side by Side Diff: src/codec/SkJpegAutoClean.cpp

Issue 1076923002: SkJpegCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@gif-real
Patch Set: JpegAutoClean is easier to use, Scaling is tested Created 5 years, 8 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkJpegAutoClean.h"
9 #include "SkJpegUtility.h"
10
11 JpegAutoClean::JpegAutoClean(jpeg_decompress_struct* dinfo,
12 skjpeg_source_mgr* srcMgr,
13 skjpeg_error_mgr* errorMgr)
14 : fDInfo(dinfo)
15 , fSrcMgr(srcMgr)
16 , fErrorMgr(errorMgr)
17 {}
18
19 JpegAutoClean::~JpegAutoClean() {
20 if (NULL != fDInfo) {
21 jpeg_destroy_decompress(fDInfo);
22 }
23 }
24
25 jpeg_decompress_struct* JpegAutoClean::dinfo() {
26 return fDInfo;
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698