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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.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/CanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
index 10dab808eb768aa56acb2e5273836a1a5ea4dd48..0441cecc4d5467c08fd3a337d049cc6ccca3810b 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
@@ -35,6 +35,7 @@
#include "modules/canvas2d/BaseRenderingContext2D.h"
#include "modules/canvas2d/Canvas2DContextAttributes.h"
#include "modules/canvas2d/CanvasRenderingContext2DState.h"
+#include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/heap/GarbageCollected.h"
#include "public/platform/WebThread.h"
@@ -224,6 +225,8 @@ private:
HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
bool m_pruneLocalFontCacheScheduled;
ListHashSet<String> m_fontLRUList;
+
+ double estimateRenderingCostForUsage(BaseRenderingContext2D::UsageCounters, ExpensiveCanvasHeuristicParameters::RenderingModeCostIndex) const;
Justin Novosad 2016/08/04 15:53:17 Why does UsageCounters need to be an argument? get
sebastienlc 2016/08/04 16:36:27 Done.
};
DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, context->is2d(), context.is2d());

Powered by Google App Engine
This is Rietveld 408576698