summaryrefslogtreecommitdiff
path: root/chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp')
-rw-r--r--chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp b/chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp
index 0a98a96dfb5..5720368a6c1 100644
--- a/chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp
+++ b/chromium/third_party/skia/bench/ImageCacheBudgetBench.cpp
@@ -46,12 +46,12 @@ void set_cache_budget(SkCanvas* canvas, int approxImagesInBudget) {
// to render an SkImage and add one additional resource for each image we'd like to fit.
GrContext* context = canvas->getGrContext();
SkASSERT(context);
- context->flush();
+ context->flushAndSubmit();
context->priv().testingOnly_purgeAllUnlockedResources();
sk_sp<SkImage> image;
make_images(&image, 1);
draw_image(canvas, image.get());
- context->flush();
+ context->flushAndSubmit();
int baselineCount;
context->getResourceCacheUsage(&baselineCount, nullptr);
baselineCount -= 1; // for the image's textures.