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

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 535953002: Replace SkPictureReplacementPlayback with GrRecordReplaceDraw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix memory leak Created 6 years, 3 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: src/gpu/SkGpuDevice.cpp
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index d26d4f8ed28831265feaea6f9978570c68a723d5..099c4e680e6c92b5362223787911470607191073 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1864,7 +1864,7 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture
SkAutoTArray<bool> pullForward(gpuData->numSaveLayers());
- SkRect clipBounds;
+ SkRect clipBounds = { 0, 0, 0, 0 };
mtklein 2014/09/03 15:46:12 Seems fine, but if we're returning when getClipBou
robertphillips 2014/09/03 17:36:24 Done.
if (!mainCanvas->getClipBounds(&clipBounds)) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698