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

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

Issue 1160493002: Determine WebGL back-buffer on Mali-400 GPU Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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: Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.h b/Source/platform/graphics/gpu/DrawingBuffer.h
index 81c98223027a66456c277fb06c4bb9284ae22c54..70bea84f65e075e9b8ffada424f44dd035b083ab 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -33,6 +33,7 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/IntSize.h"
+#include "platform/gpu/GPUBlackList.h"
#include "platform/graphics/GraphicsTypes3D.h"
#include "platform/graphics/gpu/WebGLImageConversion.h"
#include "public/platform/WebExternalTextureLayerClient.h"
@@ -164,6 +165,7 @@ public:
int sampleCount() const { return m_sampleCount; }
bool explicitResolveOfMultisampleData() const { return m_multisampleMode == ExplicitResolve; };
+ bool isRGBTextureSupported() const { return m_RGBTextureSupported; }
protected: // For unittests
DrawingBuffer(
@@ -222,6 +224,9 @@ private:
void allocateTextureMemory(TextureInfo*, const IntSize&);
void deleteChromiumImageForTexture(TextureInfo*);
+ GPUBlackList gpuBlackList() { return m_gpuBlackList; }
+ void determineRGBTextureSupport();
+
PreserveDrawingBuffer m_preserveDrawingBuffer;
bool m_scissorEnabled;
Platform3DObject m_texture2DBinding;
@@ -280,6 +285,7 @@ private:
bool m_destructionInProgress;
bool m_isHidden;
SkFilterQuality m_filterQuality;
+ bool m_RGBTextureSupported;
OwnPtr<WebExternalTextureLayer> m_layer;
@@ -297,6 +303,8 @@ private:
// Used to flip a bitmap vertically.
Vector<uint8_t> m_scanline;
+
+ GPUBlackList m_gpuBlackList;
};
} // namespace blink
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698