aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/SkBitmapCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkBitmapCache.cpp')
-rw-r--r--src/effects/SkBitmapCache.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/effects/SkBitmapCache.cpp b/src/effects/SkBitmapCache.cpp
index 2a3f87a..f4b7b91 100644
--- a/src/effects/SkBitmapCache.cpp
+++ b/src/effects/SkBitmapCache.cpp
@@ -1,19 +1,12 @@
-/*
- Copyright 2010 Google Inc.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*/
+
#include "SkBitmapCache.h"
struct SkBitmapCache::Entry {
@@ -24,7 +17,10 @@ struct SkBitmapCache::Entry {
size_t fSize;
SkBitmap fBitmap;
- Entry(const void* buffer, size_t size, const SkBitmap& bm) : fBitmap(bm) {
+ Entry(const void* buffer, size_t size, const SkBitmap& bm)
+ : fPrev(NULL),
+ fNext(NULL),
+ fBitmap(bm) {
fBuffer = sk_malloc_throw(size);
fSize = size;
memcpy(fBuffer, buffer, size);