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

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

Issue 179973004: Share Group plumbing in Blink; Remove WebGL from default share group (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed Ken's feedback Created 6 years, 9 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 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void putByteArray(Multiply multiplied, Uint8ClampedArray*, const IntSize& so urceSize, const IntRect& sourceRect, const IntPoint& destPoint); 101 void putByteArray(Multiply multiplied, Uint8ClampedArray*, const IntSize& so urceSize, const IntRect& sourceRect, const IntPoint& destPoint);
102 102
103 String toDataURL(const String& mimeType, const double* quality = 0) const; 103 String toDataURL(const String& mimeType, const double* quality = 0) const;
104 AffineTransform baseTransform() const { return AffineTransform(); } 104 AffineTransform baseTransform() const { return AffineTransform(); }
105 void transformColorSpace(ColorSpace srcColorSpace, ColorSpace dstColorSpace) ; 105 void transformColorSpace(ColorSpace srcColorSpace, ColorSpace dstColorSpace) ;
106 blink::WebLayer* platformLayer() const; 106 blink::WebLayer* platformLayer() const;
107 107
108 // FIXME: current implementations of this method have the restriction that t hey only work 108 // FIXME: current implementations of this method have the restriction that t hey only work
109 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0 , as specified in 109 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0 , as specified in
110 // Extensions3D::canUseCopyTextureCHROMIUM(). 110 // Extensions3D::canUseCopyTextureCHROMIUM().
111 // Destroys the TEXTURE_2D binding for the active texture unit of the passed context
111 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, G Lenum, GLenum, GLint, bool, bool); 112 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, G Lenum, GLenum, GLint, bool, bool);
112 113
113 Platform3DObject getBackingTexture(); 114 Platform3DObject getBackingTexture();
115
114 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*); 116 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*);
115 117
116 void flush(); 118 void flush();
117 119
118 private: 120 private:
119 ImageBuffer(PassOwnPtr<ImageBufferSurface>); 121 ImageBuffer(PassOwnPtr<ImageBufferSurface>);
120 bool isValid() const; 122 bool isValid() const;
121 123
122 void draw(GraphicsContext*, const FloatRect&, const FloatRect& = FloatRect(0 , 0, -1, -1), CompositeOperator = CompositeSourceOver, blink::WebBlendMode = bli nk::WebBlendModeNormal, bool useLowQualityScale = false); 124 void draw(GraphicsContext*, const FloatRect&, const FloatRect& = FloatRect(0 , 0, -1, -1), CompositeOperator = CompositeSourceOver, blink::WebBlendMode = bli nk::WebBlendModeNormal, bool useLowQualityScale = false);
123 void drawPattern(GraphicsContext*, const FloatRect&, const FloatSize&, const FloatPoint&, CompositeOperator, const FloatRect&, blink::WebBlendMode, const In tSize& repeatSpacing = IntSize()); 125 void drawPattern(GraphicsContext*, const FloatRect&, const FloatSize&, const FloatPoint&, CompositeOperator, const FloatRect&, blink::WebBlendMode, const In tSize& repeatSpacing = IntSize());
(...skipping 16 matching lines...) Expand all
140 142
141 IntSize m_size; 143 IntSize m_size;
142 RefPtr<Uint8ClampedArray> m_data; 144 RefPtr<Uint8ClampedArray> m_data;
143 }; 145 };
144 146
145 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String& mimeType, const double* quality); 147 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String& mimeType, const double* quality);
146 148
147 } // namespace WebCore 149 } // namespace WebCore
148 150
149 #endif // ImageBuffer_h 151 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698