diff options
author | Robert Phillips <robertphillips@google.com> | 2017-04-20 13:30:34 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-21 11:17:52 +0000 |
commit | 02242e82e4bf94a8f6862dadb5bf347ea5e31eb5 (patch) | |
tree | aa85e0d17c461553ba25639619f09b4ced45d02b /tests/PreFlushCallbackTest.cpp | |
parent | cb67096b61f699b047fe8635984db1ac708a7b99 (diff) |
Rm makeRenderTargetContext in favor of deferred version (take 2)
This is a reland of: https://skia-review.googlesource.com/c/13001/ (Rm makeRenderTargetContext in favor of deferred version)
Change-Id: Ife77b012d09c46895884a168fc5045bd92a4b919
Reviewed-on: https://skia-review.googlesource.com/13196
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/PreFlushCallbackTest.cpp')
-rw-r--r-- | tests/PreFlushCallbackTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/PreFlushCallbackTest.cpp b/tests/PreFlushCallbackTest.cpp index 7be01fb709..da7f93b583 100644 --- a/tests/PreFlushCallbackTest.cpp +++ b/tests/PreFlushCallbackTest.cpp @@ -419,7 +419,8 @@ private: static sk_sp<GrTextureProxy> make_upstream_image(GrContext* context, AtlasObject* object, int start, sk_sp<GrTextureProxy> fakeAtlas) { - sk_sp<GrRenderTargetContext> rtc(context->makeRenderTargetContext(SkBackingFit::kApprox, + sk_sp<GrRenderTargetContext> rtc(context->makeDeferredRenderTargetContext( + SkBackingFit::kApprox, 3*kDrawnTileSize, kDrawnTileSize, kRGBA_8888_GrPixelConfig, @@ -554,7 +555,8 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(PreFlushCallbackTest, reporter, ctxInfo) { static const int kFinalWidth = 6*kDrawnTileSize; static const int kFinalHeight = kDrawnTileSize; - sk_sp<GrRenderTargetContext> rtc(context->makeRenderTargetContext(SkBackingFit::kApprox, + sk_sp<GrRenderTargetContext> rtc(context->makeDeferredRenderTargetContext( + SkBackingFit::kApprox, kFinalWidth, kFinalHeight, kRGBA_8888_GrPixelConfig, |