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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
4 * Copyright (C) 2008-2009 Torch Mobile, Inc. 4 * Copyright (C) 2008-2009 Torch Mobile, Inc.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 Unknown, // We haven't checked the source's repetition count. 103 Unknown, // We haven't checked the source's repetition count.
104 Uncertain, // We have a repetition count, but it might be wrong (some GIFs 104 Uncertain, // We have a repetition count, but it might be wrong (some GIFs
105 // have a count after the image data, and will report "loop 105 // have a count after the image data, and will report "loop
106 // once" until all data has been decoded). 106 // once" until all data has been decoded).
107 Certain // The repetition count is known to be correct. 107 Certain // The repetition count is known to be correct.
108 }; 108 };
109 109
110 BitmapImage(const SkBitmap&, ImageObserver* = 0); 110 BitmapImage(const SkBitmap&, ImageObserver* = 0);
111 BitmapImage(ImageObserver* = 0); 111 BitmapImage(ImageObserver* = 0);
112 112
113 void draw(SkCanvas*, 113 void draw(CdlCanvas*,
114 const SkPaint&, 114 const CdlPaint&,
115 const FloatRect& dstRect, 115 const FloatRect& dstRect,
116 const FloatRect& srcRect, 116 const FloatRect& srcRect,
117 RespectImageOrientationEnum, 117 RespectImageOrientationEnum,
118 ImageClampingMode) override; 118 ImageClampingMode) override;
119 119
120 size_t currentFrame() const { return m_currentFrame; } 120 size_t currentFrame() const { return m_currentFrame; }
121 size_t frameCount(); 121 size_t frameCount();
122 122
123 sk_sp<SkImage> frameAtIndex(size_t); 123 sk_sp<SkImage> frameAtIndex(size_t);
124 124
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 bool m_sizeAvailable : 1; // Whether we can obtain the size of the first 215 bool m_sizeAvailable : 1; // Whether we can obtain the size of the first
216 // image frame from ImageIO yet. 216 // image frame from ImageIO yet.
217 mutable bool m_haveFrameCount : 1; 217 mutable bool m_haveFrameCount : 1;
218 }; 218 };
219 219
220 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); 220 DEFINE_IMAGE_TYPE_CASTS(BitmapImage);
221 221
222 } // namespace blink 222 } // namespace blink
223 223
224 #endif 224 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698