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

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

Issue 13724012: Remove Cairo support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 static PassRefPtr<BitmapImage> create(const wxBitmap& bitmap) 158 static PassRefPtr<BitmapImage> create(const wxBitmap& bitmap)
159 { 159 {
160 return adoptRef(new BitmapImage(bitmap)); 160 return adoptRef(new BitmapImage(bitmap));
161 } 161 }
162 #endif 162 #endif
163 #if PLATFORM(WIN) 163 #if PLATFORM(WIN)
164 virtual bool getHBITMAP(HBITMAP); 164 virtual bool getHBITMAP(HBITMAP);
165 virtual bool getHBITMAPOfSize(HBITMAP, LPSIZE); 165 virtual bool getHBITMAPOfSize(HBITMAP, LPSIZE);
166 #endif 166 #endif
167 167
168 #if USE(CAIRO)
169 static PassRefPtr<BitmapImage> create(cairo_surface_t*);
170 #endif
171
172 #if PLATFORM(GTK) 168 #if PLATFORM(GTK)
173 virtual GdkPixbuf* getGdkPixbuf(); 169 virtual GdkPixbuf* getGdkPixbuf();
174 #endif 170 #endif
175 171
176 #if PLATFORM(EFL) 172 #if PLATFORM(EFL)
177 virtual Evas_Object* getEvasObject(Evas*); 173 virtual Evas_Object* getEvasObject(Evas*);
178 #endif 174 #endif
179 175
180 virtual NativeImagePtr nativeImageForCurrentFrame(); 176 virtual NativeImagePtr nativeImageForCurrentFrame();
181 virtual bool currentFrameKnownToBeOpaque() OVERRIDE; 177 virtual bool currentFrameKnownToBeOpaque() OVERRIDE;
(...skipping 19 matching lines...) Expand all
201 BitmapImage(NativeImagePtr, ImageObserver* = 0); 197 BitmapImage(NativeImagePtr, ImageObserver* = 0);
202 BitmapImage(ImageObserver* = 0); 198 BitmapImage(ImageObserver* = 0);
203 #if PLATFORM(WX) 199 #if PLATFORM(WX)
204 BitmapImage(const wxBitmap&); 200 BitmapImage(const wxBitmap&);
205 #endif 201 #endif
206 202
207 #if PLATFORM(WIN) 203 #if PLATFORM(WIN)
208 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator); 204 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator);
209 #endif 205 #endif
210 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode); 206 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode);
211 #if USE(CG) || PLATFORM(CHROMIUM) || USE(CAIRO) || PLATFORM(BLACKBERRY) 207 #if USE(CG) || PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY)
212 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode, RespectIma geOrientationEnum) OVERRIDE; 208 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode, RespectIma geOrientationEnum) OVERRIDE;
213 #endif 209 #endif
214 210
215 #if (OS(WINCE) && !PLATFORM(QT)) 211 #if (OS(WINCE) && !PLATFORM(QT))
216 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A ffineTransform& patternTransform, 212 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A ffineTransform& patternTransform,
217 const FloatPoint& phase, ColorSpace styleColorSpace , CompositeOperator, const FloatRect& destRect); 213 const FloatPoint& phase, ColorSpace styleColorSpace , CompositeOperator, const FloatRect& destRect);
218 #endif 214 #endif
219 215
220 size_t currentFrame() const { return m_currentFrame; } 216 size_t currentFrame() const { return m_currentFrame; }
221 virtual size_t frameCount(); 217 virtual size_t frameCount();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 bool m_allDataReceived : 1; // Whether or not we've received all our data. 308 bool m_allDataReceived : 1; // Whether or not we've received all our data.
313 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable has the final overall image size yet. 309 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable has the final overall image size yet.
314 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO. 310 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO.
315 mutable bool m_hasUniformFrameSize : 1; 311 mutable bool m_hasUniformFrameSize : 1;
316 mutable bool m_haveFrameCount : 1; 312 mutable bool m_haveFrameCount : 1;
317 }; 313 };
318 314
319 } 315 }
320 316
321 #endif 317 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/platform/MIMETypeRegistry.cpp ('k') | Source/WebCore/platform/graphics/DashArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698