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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation 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
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/ImageBuffer.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 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 String toDataURL(const String& mimeType, const double* quality = 0, Coor dinateSystem = LogicalCoordinateSystem) const; 113 String toDataURL(const String& mimeType, const double* quality = 0, Coor dinateSystem = LogicalCoordinateSystem) const;
114 AffineTransform baseTransform() const { return AffineTransform(); } 114 AffineTransform baseTransform() const { return AffineTransform(); }
115 void transformColorSpace(ColorSpace srcColorSpace, ColorSpace dstColorSp ace); 115 void transformColorSpace(ColorSpace srcColorSpace, ColorSpace dstColorSp ace);
116 void platformTransformColorSpace(const Vector<int>&); 116 void platformTransformColorSpace(const Vector<int>&);
117 PlatformLayer* platformLayer() const; 117 PlatformLayer* platformLayer() const;
118 118
119 // FIXME: current implementations of this method have the restriction th at they only work 119 // FIXME: current implementations of this method have the restriction th at they only work
120 // with textures that are RGB or RGBA format, and UNSIGNED_BYTE type. 120 // with textures that are RGB or RGBA format, and UNSIGNED_BYTE type.
121 bool copyToPlatformTexture(GraphicsContext3D&, Platform3DObject, GC3Denu m, bool, bool); 121 bool copyToPlatformTexture(GraphicsContext3D&, Platform3DObject, GC3Denu m, bool, bool);
122 122
123 void reportMemoryUsage(MemoryObjectInfo*) const;
124
125 private: 123 private:
126 void clip(GraphicsContext*, const FloatRect&) const; 124 void clip(GraphicsContext*, const FloatRect&) const;
127 125
128 void draw(GraphicsContext*, ColorSpace, const FloatRect& destRect, const FloatRect& srcRect = FloatRect(0, 0, -1, -1), CompositeOperator = CompositeSour ceOver, BlendMode = BlendModeNormal, bool useLowQualityScale = false); 126 void draw(GraphicsContext*, ColorSpace, const FloatRect& destRect, const FloatRect& srcRect = FloatRect(0, 0, -1, -1), CompositeOperator = CompositeSour ceOver, BlendMode = BlendModeNormal, bool useLowQualityScale = false);
129 void drawPattern(GraphicsContext*, const FloatRect& srcRect, const Affin eTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpac e, CompositeOperator, const FloatRect& destRect); 127 void drawPattern(GraphicsContext*, const FloatRect& srcRect, const Affin eTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpac e, CompositeOperator, const FloatRect& destRect);
130 128
131 inline void genericConvertToLuminanceMask(); 129 inline void genericConvertToLuminanceMask();
132 130
133 friend class GraphicsContext; 131 friend class GraphicsContext;
134 friend class GeneratedImage; 132 friend class GeneratedImage;
(...skipping 11 matching lines...) Expand all
146 // so that create() knows when it should return failure. 144 // so that create() knows when it should return failure.
147 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, Rendering Mode, bool& success); 145 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, Rendering Mode, bool& success);
148 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, const Gra phicsContext*, bool hasAlpha, bool& success); 146 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, const Gra phicsContext*, bool hasAlpha, bool& success);
149 }; 147 };
150 148
151 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do uble* quality); 149 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do uble* quality);
152 150
153 } // namespace WebCore 151 } // namespace WebCore
154 152
155 #endif // ImageBuffer_h 153 #endif // ImageBuffer_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/ImageBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698