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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h

Issue 2776083002: enable fallback path (Closed)
Patch Set: use stream read Created 3 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
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 cc::TextureMailbox* outMailbox, 195 cc::TextureMailbox* outMailbox,
196 std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback) override; 196 std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback) override;
197 197
198 // Returns a StaticBitmapImage backed by a texture containing the current 198 // Returns a StaticBitmapImage backed by a texture containing the current
199 // contents of the front buffer. This is done without any pixel copies. The 199 // contents of the front buffer. This is done without any pixel copies. The
200 // texture in the ImageBitmap is from the active ContextProvider on the 200 // texture in the ImageBitmap is from the active ContextProvider on the
201 // DrawingBuffer. 201 // DrawingBuffer.
202 PassRefPtr<StaticBitmapImage> transferToStaticBitmapImage(); 202 PassRefPtr<StaticBitmapImage> transferToStaticBitmapImage();
203 203
204 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, 204 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*,
205 GLenum target,
205 GLuint texture, 206 GLuint texture,
206 GLenum internalFormat,
207 GLenum destType,
208 GLint level,
209 bool premultiplyAlpha, 207 bool premultiplyAlpha,
210 bool flipY, 208 bool flipY,
211 const IntPoint& destTextureOffset, 209 const IntPoint& destTextureOffset,
212 const IntRect& sourceSubRectangle, 210 const IntRect& sourceSubRectangle,
213 SourceDrawingBuffer); 211 SourceDrawingBuffer);
214 212
215 bool paintRenderingResultsToImageData(int&, 213 bool paintRenderingResultsToImageData(int&,
216 int&, 214 int&,
217 SourceDrawingBuffer, 215 SourceDrawingBuffer,
218 WTF::ArrayBufferContents&); 216 WTF::ArrayBufferContents&);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with 525 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with
528 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to 526 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to
529 // DisallowChromiumImage in the case of OffscreenCanvas. 527 // DisallowChromiumImage in the case of OffscreenCanvas.
530 ChromiumImageUsage m_chromiumImageUsage; 528 ChromiumImageUsage m_chromiumImageUsage;
531 bool shouldUseChromiumImage(); 529 bool shouldUseChromiumImage();
532 }; 530 };
533 531
534 } // namespace blink 532 } // namespace blink
535 533
536 #endif // DrawingBuffer_h 534 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698