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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h

Issue 2210123002: Improved heuristic for disable acceleration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/modules/canvas2d/BaseRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
index 9638d7ea2b03458bd71b323d627c9d1827e58574..b8bce4e2e7d65e2ec0059008d375584b44fcaa6c 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
@@ -165,7 +165,8 @@ public:
enum DrawCallType {
StrokePath = 0,
FillPath,
- DrawImage,
+ DrawSVGImage,
Justin Novosad 2016/08/04 15:53:17 SVG -> Vector
sebastienlc 2016/08/04 16:36:27 Done.
+ DrawPNGImage,
Justin Novosad 2016/08/04 15:53:17 PNG -> Bitmap
sebastienlc 2016/08/04 16:36:27 Done.
FillText,
StrokeText,
FillRect,
@@ -187,7 +188,9 @@ public:
double boundingBoxAreaDrawCalls[DrawCallTypeCount];
double boundingBoxAreaFillType[PathFillTypeCount];
int numNonConvexFillPathCalls;
- int numGradients;
+ double nonConvexFillPathArea;
Justin Novosad 2016/08/04 15:53:17 Could you change all these doubles to float. The
sebastienlc 2016/08/04 16:36:27 Done.
+ int numRadialGradients;
+ int numLinearGradients;
int numPatterns;
int numDrawWithComplexClips;
int numBlurredShadows;

Powered by Google App Engine
This is Rietveld 408576698