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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

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/modules/webgl/WebGLRenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
index b604fb2c75493d58b03ff8cc846d1a5755934fd5..18f00f5afddda68c1b22917d181077905cb3c8d9 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
@@ -987,11 +987,9 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
TexImage3D,
TexSubImage3D
};
- enum TexImageByGPUType {
- TexImage2DByGPU,
- TexSubImage2DByGPU,
- TexSubImage3DByGPU
- };
+
+ static SnapshotReason functionIDToSnapshotReason(TexImageFunctionID);
+
enum TexImageDimension { Tex2D, Tex3D };
void texImage2DBase(GLenum target,
GLint level,
@@ -1102,7 +1100,7 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
// Copy from the source directly to the texture via the gpu, without a
// read-back to system memory. Source could be canvas or imageBitmap.
- void texImageByGPU(TexImageByGPUType,
+ void texImageByGPU(TexImageFunctionID,
WebGLTexture*,
GLenum target,
GLint level,
@@ -1646,7 +1644,8 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
ScriptState*,
const CanvasContextCreationAttributes&,
unsigned);
- void texImageCanvasByGPU(HTMLCanvasElement*,
+ void texImageCanvasByGPU(TexImageFunctionID,
+ HTMLCanvasElement*,
GLuint,
GLenum,
GLenum,

Powered by Google App Engine
This is Rietveld 408576698