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

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

Issue 9340004: Merge 104501 - [chromium win] Creating lots of temporary canvas contexts will crash. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class IntPoint; 52 class IntPoint;
53 class IntRect; 53 class IntRect;
54 54
55 enum Multiply { 55 enum Multiply {
56 Premultiplied, 56 Premultiplied,
57 Unmultiplied 57 Unmultiplied
58 }; 58 };
59 59
60 enum RenderingMode { 60 enum RenderingMode {
61 Unaccelerated, 61 Unaccelerated,
62 UnacceleratedNonPlatformBuffer, // Use plain memory allocation rather th an platform API to allocate backing store.
62 Accelerated 63 Accelerated
63 }; 64 };
64 65
65 enum BackingStoreCopy { 66 enum BackingStoreCopy {
66 CopyBackingStore, // Guarantee subsequent draws don't affect the copy. 67 CopyBackingStore, // Guarantee subsequent draws don't affect the copy.
67 DontCopyBackingStore // Subsequent draws may affect the copy. 68 DontCopyBackingStore // Subsequent draws may affect the copy.
68 }; 69 };
69 70
70 class ImageBuffer { 71 class ImageBuffer {
71 WTF_MAKE_NONCOPYABLE(ImageBuffer); WTF_MAKE_FAST_ALLOCATED; 72 WTF_MAKE_NONCOPYABLE(ImageBuffer); WTF_MAKE_FAST_ALLOCATED;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ImageBuffer(const IntSize&, ColorSpace, RenderingMode, bool& success); 146 ImageBuffer(const IntSize&, ColorSpace, RenderingMode, bool& success);
146 }; 147 };
147 148
148 #if USE(CG) || USE(SKIA) 149 #if USE(CG) || USE(SKIA)
149 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do uble* quality); 150 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do uble* quality);
150 #endif 151 #endif
151 152
152 } // namespace WebCore 153 } // namespace WebCore
153 154
154 #endif // ImageBuffer_h 155 #endif // ImageBuffer_h
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLCanvasElement.cpp ('k') | Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698