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

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

Issue 2267993002: Expose if we are using swiftshader via WebGraphicsContext3DProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: softwarerendering: . Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
index d8215bb2a7870fd1b13a535861a379f810733f87..e0a9fdc6c776b4f911bf8dc7360fc665795d5d6e 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -212,10 +212,6 @@ public:
std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback,
bool useSharedMemory) override;
- // Callbacks for mailboxes given to the compositor from PrepareTextureMailbox.
- void gpuMailboxReleased(const gpu::Mailbox&, const gpu::SyncToken&, bool lostResource);
- void softwareMailboxReleased(std::unique_ptr<cc::SharedBitmap>, const IntSize&, const gpu::SyncToken&, bool lostResource);
-
// Returns a StaticBitmapImage backed by a texture containing the/ current contents of
// the front buffer. This is done without any pixel copies. The texture in the ImageBitmap
// is from the active ContextProvider on the DrawingBuffer.
@@ -289,6 +285,15 @@ private:
WTF_MAKE_NONCOPYABLE(MailboxInfo);
};
+ bool prepareTextureMailboxInternal(
+ cc::TextureMailbox* outMailbox,
+ std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback,
+ bool forceGpuResult);
+
+ // Callbacks for mailboxes given to the compositor from PrepareTextureMailbox.
+ void gpuMailboxReleased(const gpu::Mailbox&, const gpu::SyncToken&, bool lostResource);
+ void softwareMailboxReleased(std::unique_ptr<cc::SharedBitmap>, const IntSize&, const gpu::SyncToken&, bool lostResource);
+
// The texture parameters to use for a texture that will be backed by a
// CHROMIUM_image.
TextureParameters chromiumImageTextureParameters();
@@ -388,6 +393,7 @@ private:
const bool m_discardFramebufferSupported;
const bool m_wantAlphaChannel;
const bool m_premultipliedAlpha;
+ const bool m_softwareRendering;
bool m_hasImplicitStencilBuffer = false;
bool m_storageTextureSupported = false;
struct FrontBufferInfo {

Powered by Google App Engine
This is Rietveld 408576698