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

Unified Diff: Source/core/platform/graphics/skia/PlatformContextSkia.cpp

Issue 14160005: Track the region where text is painted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase with TOT Created 7 years, 8 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/core/platform/graphics/skia/PlatformContextSkia.cpp
diff --git a/Source/core/platform/graphics/skia/PlatformContextSkia.cpp b/Source/core/platform/graphics/skia/PlatformContextSkia.cpp
index 3cbf7cdd5a7bfab347fdd7fe07ae5a1f1c5d7c3d..ea336fcafcf4e478fe1e1a5db4a8236c0881ff36 100644
--- a/Source/core/platform/graphics/skia/PlatformContextSkia.cpp
+++ b/Source/core/platform/graphics/skia/PlatformContextSkia.cpp
@@ -189,6 +189,7 @@ PlatformContextSkia::PlatformContextSkia(SkCanvas* canvas)
: m_canvas(canvas)
, m_deferredSaveFlags(0)
, m_trackOpaqueRegion(false)
+ , m_trackTextRegion(false)
, m_printing(false)
, m_accelerated(false)
, m_drawingToImageBuffer(false)
@@ -614,4 +615,12 @@ bool PlatformContextSkia::couldUseLCDRenderedText()
return m_gc->shouldSmoothFonts();
}
+void PlatformContextSkia::trackTextRegion(const SkRect& textRect)
+{
+ if (m_trackTextRegion) {
+ TRACE_EVENT0("skia", "PlatformContextSkia::trackTextRegion");
+ m_textRegion.join(textRect);
eseidel 2013/04/18 21:04:38 I hope this isn't a WebCore::Region (which is abys
alokp 2013/04/18 22:22:37 Not WebCore::Region. It is SkRect (for now). I may
+ }
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698