diff options
author | Robert Phillips <robertphillips@google.com> | 2016-12-20 08:57:26 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-20 14:39:45 +0000 |
commit | 22f4a1fd4859aa75133de37a24b3201cce5d6844 (patch) | |
tree | 526e4c78647cb3596fab756c8442c454f67a6826 /tools/debugger/SkDebugCanvas.cpp | |
parent | 1bfcf887553a9d39b25f0d8c408b78841cd9d8fc (diff) |
Remove getDevice_just_for_deprecated_compatibility_test()
BUG=skia:6067
Change-Id: I646e75f43bc77ea884b7fad7281bf0b684996bb9
Reviewed-on: https://skia-review.googlesource.com/6299
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools/debugger/SkDebugCanvas.cpp')
-rw-r--r-- | tools/debugger/SkDebugCanvas.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp index b42c529f03..8199796d72 100644 --- a/tools/debugger/SkDebugCanvas.cpp +++ b/tools/debugger/SkDebugCanvas.cpp @@ -16,8 +16,7 @@ #if SK_SUPPORT_GPU #include "GrAuditTrail.h" #include "GrContext.h" -#include "GrRenderTarget.h" -#include "SkGpuDevice.h" +#include "GrRenderTargetContext.h" #endif #define SKDEBUGCANVAS_VERSION 1 @@ -348,10 +347,8 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index, int m) { static const SkColor kOtherBatchBounds = SkColorSetARGB(0xC0, 0xFF, 0x7F, 0x00); // get the render target of the top device so we can ignore batches drawn offscreen - SkBaseDevice* bd = canvas->getDevice_just_for_deprecated_compatibility_testing(); - SkGpuDevice* gbd = reinterpret_cast<SkGpuDevice*>(bd); - GrGpuResource::UniqueID rtID = - gbd->accessRenderTargetContext()->accessRenderTarget()->uniqueID(); + GrRenderTargetContext* rtc = canvas->internal_private_accessTopLayerRenderTargetContext(); + GrGpuResource::UniqueID rtID = rtc->accessRenderTarget()->uniqueID(); // get the bounding boxes to draw SkTArray<GrAuditTrail::BatchInfo> childrenBounds; |