aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkJpegUtility.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-06-18 09:58:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-18 09:58:57 -0700
commit525e90ab92fed79ac11afbb6e13d56867157fa70 (patch)
treee6d68f8461b01eba75d829cb3f1e4c67f3eb826f /src/codec/SkJpegUtility.h
parent6dc6f5f4a153d33ed91565cb3cd397a310a937d0 (diff)
Try again to rename one SkJpegUtility.h to remove ambiguity.
This time rename the new codec one, which is not referenced externally. BUG=skia: Review URL: https://codereview.chromium.org/1181093008
Diffstat (limited to 'src/codec/SkJpegUtility.h')
-rw-r--r--src/codec/SkJpegUtility.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/codec/SkJpegUtility.h b/src/codec/SkJpegUtility.h
deleted file mode 100644
index 42cd7af760..0000000000
--- a/src/codec/SkJpegUtility.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef SkJpegUtility_DEFINED
-#define SkJpegUtility_DEFINED
-
-#include "SkStream.h"
-
-#include <setjmp.h>
-// stdio is needed for jpeglib
-#include <stdio.h>
-
-extern "C" {
- #include "jpeglib.h"
- #include "jerror.h"
-}
-
-/*
- * Error handling struct
- */
-struct skjpeg_error_mgr : jpeg_error_mgr {
- jmp_buf fJmpBuf;
-};
-
-/*
- * Error handling function
- */
-void skjpeg_err_exit(j_common_ptr cinfo);
-
-/*
- * Source handling struct for that allows libjpeg to use our stream object
- */
-struct skjpeg_source_mgr : jpeg_source_mgr {
- skjpeg_source_mgr(SkStream* stream);
-
- SkStream* fStream; // unowned
- enum {
- // TODO (msarett): Experiment with different buffer sizes.
- // This size was chosen because it matches SkImageDecoder.
- kBufferSize = 1024
- };
- uint8_t fBuffer[kBufferSize];
-};
-
-#endif