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

Side by Side Diff: src/core/SkBitmapCache.cpp

Issue 499203002: Clean up useless comments in SkScaledImageCache.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove whitespaces from end of line Created 6 years, 4 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 | « no previous file | src/core/SkScaledImageCache.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 2014 Google Inc. 2 * Copyright 2014 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 "SkBitmapCache.h" 8 #include "SkBitmapCache.h"
9 #include "SkRect.h" 9 #include "SkRect.h"
10 10
(...skipping 14 matching lines...) Expand all
25 struct BitmapKey : public SkScaledImageCache::Key { 25 struct BitmapKey : public SkScaledImageCache::Key {
26 public: 26 public:
27 BitmapKey(uint32_t genID, SkScalar scaleX, SkScalar scaleY, const SkIRect& b ounds) 27 BitmapKey(uint32_t genID, SkScalar scaleX, SkScalar scaleY, const SkIRect& b ounds)
28 : fGenID(genID) 28 : fGenID(genID)
29 , fScaleX(scaleX) 29 , fScaleX(scaleX)
30 , fScaleY(scaleY) 30 , fScaleY(scaleY)
31 , fBounds(bounds) 31 , fBounds(bounds)
32 { 32 {
33 this->init(sizeof(fGenID) + sizeof(fScaleX) + sizeof(fScaleY) + sizeof(f Bounds)); 33 this->init(sizeof(fGenID) + sizeof(fScaleX) + sizeof(fScaleY) + sizeof(f Bounds));
34 } 34 }
35 35
36 uint32_t fGenID; 36 uint32_t fGenID;
37 SkScalar fScaleX; 37 SkScalar fScaleX;
38 SkScalar fScaleY; 38 SkScalar fScaleY;
39 SkIRect fBounds; 39 SkIRect fBounds;
40 }; 40 };
41 41
42 //////////////////////////////////////////////////////////////////////////////// ////////// 42 //////////////////////////////////////////////////////////////////////////////// //////////
43 43
44 SkScaledImageCache::ID* SkBitmapCache::FindAndLock(const SkBitmap& src, 44 SkScaledImageCache::ID* SkBitmapCache::FindAndLock(const SkBitmap& src,
45 SkScalar invScaleX, SkScalar invScaleY, 45 SkScalar invScaleX, SkScalar invScaleY,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 SkScaledImageCache::ID* SkMipMapCache::FindAndLock(const SkBitmap& src, const Sk MipMap** result) { 82 SkScaledImageCache::ID* SkMipMapCache::FindAndLock(const SkBitmap& src, const Sk MipMap** result) {
83 BitmapKey key(src.getGenerationID(), SK_Scalar1, SK_Scalar1, get_bounds_from _bitmap(src)); 83 BitmapKey key(src.getGenerationID(), SK_Scalar1, SK_Scalar1, get_bounds_from _bitmap(src));
84 return SkScaledImageCache::FindAndLock(key, result); 84 return SkScaledImageCache::FindAndLock(key, result);
85 } 85 }
86 86
87 SkScaledImageCache::ID* SkMipMapCache::AddAndLock(const SkBitmap& src, const SkM ipMap* result) { 87 SkScaledImageCache::ID* SkMipMapCache::AddAndLock(const SkBitmap& src, const SkM ipMap* result) {
88 BitmapKey key(src.getGenerationID(), SK_Scalar1, SK_Scalar1, get_bounds_from _bitmap(src)); 88 BitmapKey key(src.getGenerationID(), SK_Scalar1, SK_Scalar1, get_bounds_from _bitmap(src));
89 return SkScaledImageCache::AddAndLock(key, result); 89 return SkScaledImageCache::AddAndLock(key, result);
90 } 90 }
91 91
OLDNEW
« no previous file with comments | « no previous file | src/core/SkScaledImageCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698