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

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

Issue 868743002: Use SkXfermode::Mode in code related to Image. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to ToT Created 5 years, 11 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 | « Source/platform/DragImageTest.cpp ('k') | Source/platform/graphics/BitmapImage.cpp » ('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 (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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 protected: 96 protected:
97 enum RepetitionCountStatus { 97 enum RepetitionCountStatus {
98 Unknown, // We haven't checked the source's repetition count. 98 Unknown, // We haven't checked the source's repetition count.
99 Uncertain, // We have a repetition count, but it might be wrong (some GIF s have a count after the image data, and will report "loop once" until all data has been decoded). 99 Uncertain, // We have a repetition count, but it might be wrong (some GIF s have a count after the image data, and will report "loop once" until all data has been decoded).
100 Certain // The repetition count is known to be correct. 100 Certain // The repetition count is known to be correct.
101 }; 101 };
102 102
103 BitmapImage(PassRefPtr<NativeImageSkia>, ImageObserver* = 0); 103 BitmapImage(PassRefPtr<NativeImageSkia>, ImageObserver* = 0);
104 BitmapImage(ImageObserver* = 0); 104 BitmapImage(ImageObserver* = 0);
105 105
106 void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRe ct, CompositeOperator, WebBlendMode, RespectImageOrientationEnum) override; 106 void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRe ct, SkXfermode::Mode, RespectImageOrientationEnum) override;
107 107
108 size_t currentFrame() const { return m_currentFrame; } 108 size_t currentFrame() const { return m_currentFrame; }
109 size_t frameCount(); 109 size_t frameCount();
110 110
111 PassRefPtr<NativeImageSkia> frameAtIndex(size_t); 111 PassRefPtr<NativeImageSkia> frameAtIndex(size_t);
112 112
113 bool frameIsCompleteAtIndex(size_t); 113 bool frameIsCompleteAtIndex(size_t);
114 float frameDurationAtIndex(size_t); 114 float frameDurationAtIndex(size_t);
115 bool frameHasAlphaAtIndex(size_t); 115 bool frameHasAlphaAtIndex(size_t);
116 ImageOrientation frameOrientationAtIndex(size_t); 116 ImageOrientation frameOrientationAtIndex(size_t);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO. 192 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO.
193 mutable bool m_hasUniformFrameSize : 1; 193 mutable bool m_hasUniformFrameSize : 1;
194 mutable bool m_haveFrameCount : 1; 194 mutable bool m_haveFrameCount : 1;
195 }; 195 };
196 196
197 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); 197 DEFINE_IMAGE_TYPE_CASTS(BitmapImage);
198 198
199 } // namespace blink 199 } // namespace blink
200 200
201 #endif 201 #endif
OLDNEW
« no previous file with comments | « Source/platform/DragImageTest.cpp ('k') | Source/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698