aboutsummaryrefslogtreecommitdiff
path: root/gm/lazytiling.cpp
diff options
context:
space:
mode:
authorKevin Lubick <kjlubick@google.com>2023-06-09 11:05:24 -0400
committerSkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com>2023-06-09 15:50:53 +0000
commitacdc108e8a9bffb27d1f7f77d0cd1c5a66da2cda (patch)
tree8e12c9d375e0b2bae641f49d2ed8617971b8bce8 /gm/lazytiling.cpp
parent77ebfdde41a254f63dd01664aa6de9d83c019802 (diff)
downloadskia-acdc108e8a9bffb27d1f7f77d0cd1c5a66da2cda.tar.gz
Remove Ganesh code from SkCanvasPriv
This also moves a few Android+Ganesh specific methods to a new header so they can be exposed only for Android. This enforces IWYU on the affected files (ganesh/Device was impacted because originally I was going to put the functions in there, but decided a new file was better). Change-Id: I96e3e557d5ccf9698fd2b747c0709f6a1444ce22 Bug: skia:14317 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/709957 Owners-Override: Kevin Lubick <kjlubick@google.com> Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'gm/lazytiling.cpp')
-rw-r--r--gm/lazytiling.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/lazytiling.cpp b/gm/lazytiling.cpp
index ceac8a6c77..97a3852dc9 100644
--- a/gm/lazytiling.cpp
+++ b/gm/lazytiling.cpp
@@ -16,6 +16,7 @@
#include "src/base/SkRectMemcpy.h"
#include "src/core/SkCanvasPriv.h"
#include "src/core/SkConvertPixels.h"
+#include "src/gpu/ganesh/GrCanvas.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrPaint.h"
@@ -211,7 +212,7 @@ protected:
}
DrawResult onDraw(GrRecordingContext* rContext, SkCanvas* canvas, SkString* errorMsg) override {
- auto sdc = SkCanvasPriv::TopDeviceSurfaceDrawContext(canvas);
+ auto sdc = skgpu::ganesh::TopDeviceSurfaceDrawContext(canvas);
if (!sdc) {
*errorMsg = kErrorMsg_DrawSkippedGpuOnly;
return DrawResult::kSkip;