1/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.gallery3d.filtershow.history;
18
19import android.graphics.Bitmap;
20import android.util.Log;
21import com.android.gallery3d.filtershow.filters.FilterRepresentation;
22import com.android.gallery3d.filtershow.pipeline.ImagePreset;
23
24public class HistoryItem {
25    private static final String LOGTAG = "HistoryItem";
26    private ImagePreset mImagePreset;
27    private FilterRepresentation mFilterRepresentation;
28    private Bitmap mPreviewImage;
29
30    public HistoryItem(ImagePreset preset, FilterRepresentation representation) {
31        mImagePreset = preset; // just keep a pointer to the current preset
32        if (representation != null) {
33            mFilterRepresentation = representation.copy();
34        }
35    }
36
37    public ImagePreset getImagePreset() {
38        return mImagePreset;
39    }
40
41    public FilterRepresentation getFilterRepresentation() {
42        return mFilterRepresentation;
43    }
44
45    public Bitmap getPreviewImage() {
46        return mPreviewImage;
47    }
48
49    public void setPreviewImage(Bitmap previewImage) {
50        mPreviewImage = previewImage;
51    }
52
53}
54