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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Draw layered images with a recording GraphicContext Created 5 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 bool currentFrameHasSingleSecurityOrigin() const override; 64 bool currentFrameHasSingleSecurityOrigin() const override;
65 65
66 IntSize size() const override; 66 IntSize size() const override;
67 IntSize sizeRespectingOrientation() const; 67 IntSize sizeRespectingOrientation() const;
68 bool getHotSpot(IntPoint&) const override; 68 bool getHotSpot(IntPoint&) const override;
69 String filenameExtension() const override; 69 String filenameExtension() const override;
70 bool dataChanged(bool allDataReceived) override; 70 bool dataChanged(bool allDataReceived) override;
71 71
72 bool isAllDataReceived() const { return m_allDataReceived; } 72 bool isAllDataReceived() const { return m_allDataReceived; }
73 PassRefPtr<ColorSpaceProfile> colorProfile() const { return m_source.colorPr ofile(); }
73 bool hasColorProfile() const; 74 bool hasColorProfile() const;
75 void setDrawingToCanvasElement(bool status) { m_drawingToCanvasElement = sta tus; }
76 bool drawingToCanvasElement() { return m_drawingToCanvasElement; }
74 77
75 // It may look unusual that there's no start animation call as public API. 78 // It may look unusual that there's no start animation call as public API.
76 // This because we start and stop animating lazily. Animation starts when 79 // This because we start and stop animating lazily. Animation starts when
77 // the image is rendered, and automatically pauses once all observers no 80 // the image is rendered, and automatically pauses once all observers no
78 // longer want to render the image. 81 // longer want to render the image.
79 void stopAnimation() override; 82 void stopAnimation() override;
80 void resetAnimation() override; 83 void resetAnimation() override;
81 bool maybeAnimated() override; 84 bool maybeAnimated() override;
82 85
83 void setAnimationPolicy(ImageAnimationPolicy policy) override { m_animationP olicy = policy; } 86 void setAnimationPolicy(ImageAnimationPolicy policy) override { m_animationP olicy = policy; }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 187
185 ImageAnimationPolicy m_animationPolicy; // Whether or not we can play animat ion. 188 ImageAnimationPolicy m_animationPolicy; // Whether or not we can play animat ion.
186 189
187 bool m_animationFinished : 1; // Whether or not we've completed the entire a nimation. 190 bool m_animationFinished : 1; // Whether or not we've completed the entire a nimation.
188 191
189 bool m_allDataReceived : 1; // Whether or not we've received all our data. 192 bool m_allDataReceived : 1; // Whether or not we've received all our data.
190 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable has the final overall image size yet. 193 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable has the final overall image size yet.
191 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO. 194 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO.
192 mutable bool m_hasUniformFrameSize : 1; 195 mutable bool m_hasUniformFrameSize : 1;
193 mutable bool m_haveFrameCount : 1; 196 mutable bool m_haveFrameCount : 1;
197 mutable bool m_drawingToCanvasElement : 1;
194 }; 198 };
195 199
196 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); 200 DEFINE_IMAGE_TYPE_CASTS(BitmapImage);
197 201
198 } // namespace blink 202 } // namespace blink
199 203
200 #endif 204 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698