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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp

Issue 2557783002: Improve metrics for display list canvas fallback reason (Closed)
Patch Set: Created 4 years 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/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 8a959919052273ddf1112460b0821cd8c9773761..4f51bcd6c6ca4131202f1ec7c2392df9173a784a 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -208,7 +208,8 @@ WebLayer* ImageBuffer::platformLayer() const {
return m_surface->layer();
}
-bool ImageBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl,
+bool ImageBuffer::copyToPlatformTexture(SnapshotReason reason,
+ gpu::gles2::GLES2Interface* gl,
GLuint texture,
GLenum internalFormat,
GLenum destType,
@@ -224,8 +225,8 @@ bool ImageBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl,
if (!isSurfaceValid())
return false;
- sk_sp<const SkImage> textureImage = m_surface->newImageSnapshot(
- PreferAcceleration, SnapshotReasonCopyToWebGLTexture);
+ sk_sp<const SkImage> textureImage =
+ m_surface->newImageSnapshot(PreferAcceleration, reason);
if (!textureImage)
return false;

Powered by Google App Engine
This is Rietveld 408576698