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

Side by Side Diff: Source/platform/graphics/gpu/DrawingBuffer.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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool layerComposited() const; 127 bool layerComposited() const;
128 128
129 blink::WebLayer* platformLayer(); 129 blink::WebLayer* platformLayer();
130 void paintCompositedResultsToCanvas(ImageBuffer*); 130 void paintCompositedResultsToCanvas(ImageBuffer*);
131 131
132 // WebExternalTextureLayerClient implementation. 132 // WebExternalTextureLayerClient implementation.
133 virtual blink::WebGraphicsContext3D* context() OVERRIDE; 133 virtual blink::WebGraphicsContext3D* context() OVERRIDE;
134 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt ernalBitmap*) OVERRIDE; 134 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt ernalBitmap*) OVERRIDE;
135 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&) OVERRI DE; 135 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&) OVERRI DE;
136 136
137 // Destroys the TEXTURE_2D binding for the owned context
137 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject te xture, GLenum internalFormat, 138 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject te xture, GLenum internalFormat,
138 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY); 139 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY);
139 140
140 void setPackAlignment(GLint param); 141 void setPackAlignment(GLint param);
141 142
142 void paintRenderingResultsToCanvas(ImageBuffer*); 143 void paintRenderingResultsToCanvas(ImageBuffer*);
143 PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&); 144 PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&);
144 145
145 private: 146 private:
146 DrawingBuffer(blink::WebGraphicsContext3D*, const IntSize&, bool multisample ExtensionSupported, 147 DrawingBuffer(blink::WebGraphicsContext3D*, const IntSize&, bool multisample ExtensionSupported,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // used to resize the Canvas. 258 // used to resize the Canvas.
258 SkBitmap m_resizingBitmap; 259 SkBitmap m_resizingBitmap;
259 260
260 // Used to flip a bitmap vertically. 261 // Used to flip a bitmap vertically.
261 Vector<uint8_t> m_scanline; 262 Vector<uint8_t> m_scanline;
262 }; 263 };
263 264
264 } // namespace WebCore 265 } // namespace WebCore
265 266
266 #endif // DrawingBuffer_h 267 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698