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

Side by Side 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: addmorecomment 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 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 GLboolean m_colorMask[4]; 381 GLboolean m_colorMask[4];
382 382
383 std::unique_ptr<WebGraphicsContext3DProvider> m_contextProvider; 383 std::unique_ptr<WebGraphicsContext3DProvider> m_contextProvider;
384 // Lifetime is tied to the m_contextProvider. 384 // Lifetime is tied to the m_contextProvider.
385 gpu::gles2::GLES2Interface* m_gl; 385 gpu::gles2::GLES2Interface* m_gl;
386 std::unique_ptr<Extensions3DUtil> m_extensionsUtil; 386 std::unique_ptr<Extensions3DUtil> m_extensionsUtil;
387 IntSize m_size = { -1, -1 }; 387 IntSize m_size = { -1, -1 };
388 const bool m_discardFramebufferSupported; 388 const bool m_discardFramebufferSupported;
389 const bool m_wantAlphaChannel; 389 const bool m_wantAlphaChannel;
390 const bool m_premultipliedAlpha; 390 const bool m_premultipliedAlpha;
391 const bool m_softwareRendering;
391 bool m_hasImplicitStencilBuffer = false; 392 bool m_hasImplicitStencilBuffer = false;
392 bool m_storageTextureSupported = false; 393 bool m_storageTextureSupported = false;
393 struct FrontBufferInfo { 394 struct FrontBufferInfo {
394 gpu::Mailbox mailbox; 395 gpu::Mailbox mailbox;
395 gpu::SyncToken produceSyncToken; 396 gpu::SyncToken produceSyncToken;
396 TextureInfo texInfo; 397 TextureInfo texInfo;
397 }; 398 };
398 FrontBufferInfo m_frontColorBuffer; 399 FrontBufferInfo m_frontColorBuffer;
399 400
400 std::unique_ptr<WTF::Closure> m_newMailboxCallback; 401 std::unique_ptr<WTF::Closure> m_newMailboxCallback;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // used to resize the Canvas. 479 // used to resize the Canvas.
479 SkBitmap m_resizingBitmap; 480 SkBitmap m_resizingBitmap;
480 481
481 // Used to flip a bitmap vertically. 482 // Used to flip a bitmap vertically.
482 Vector<uint8_t> m_scanline; 483 Vector<uint8_t> m_scanline;
483 }; 484 };
484 485
485 } // namespace blink 486 } // namespace blink
486 487
487 #endif // DrawingBuffer_h 488 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698