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

Unified Diff: Source/core/paint/DrawingRecorderTest.cpp

Issue 799563002: Use DrawingRecorder::canUseCachedDrawing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/EllipsisBoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DrawingRecorderTest.cpp
diff --git a/Source/core/paint/DrawingRecorderTest.cpp b/Source/core/paint/DrawingRecorderTest.cpp
index 8f25f5db9e2a06cfaa9a50afe35782bacfb96f6d..b284f1f967fbdc0a0f45f8cbe08a072ae076339c 100644
--- a/Source/core/paint/DrawingRecorderTest.cpp
+++ b/Source/core/paint/DrawingRecorderTest.cpp
@@ -41,12 +41,14 @@ private:
void drawNothing(GraphicsContext* context, RenderView* renderer, PaintPhase phase, const FloatRect& bound)
{
- RenderDrawingRecorder drawingRecorder(context, renderer, phase, bound);
+ RenderDrawingRecorder drawingRecorder(context, *renderer, phase, bound);
}
void drawRect(GraphicsContext* context, RenderView* renderer, PaintPhase phase, const FloatRect& bound)
{
- RenderDrawingRecorder drawingRecorder(context, renderer, phase, bound);
+ RenderDrawingRecorder drawingRecorder(context, *renderer, phase, bound);
+ if (drawingRecorder.canUseCachedDrawing())
+ return;
IntRect rect(0, 0, 10, 10);
context->drawRect(rect);
}
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/EllipsisBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698