Index: tools/viewer/sk_app/android/RasterWindowContext_android.h |
diff --git a/tools/viewer/sk_app/android/RasterWindowContext_android.h b/tools/viewer/sk_app/android/RasterWindowContext_android.h |
index 913b06c9ddd71c5fad2594222968b80c7ee2bc5c..7bb24ba30b6352500b8a683fa25c898c0d398fae 100644 |
--- a/tools/viewer/sk_app/android/RasterWindowContext_android.h |
+++ b/tools/viewer/sk_app/android/RasterWindowContext_android.h |
@@ -23,15 +23,12 @@ public: |
void swapBuffers() override; |
bool isValid() override { return SkToBool(fNativeWindow); } |
- void resize(uint32_t w, uint32_t h) override { |
- SkDEBUGFAIL("Resize is currently unsupported."); |
- } |
- void setDisplayParams(const DisplayParams& params) override { |
- SkDEBUGFAIL("setDisplayParams is currently unsupported."); |
- } |
+ void resize(uint32_t w, uint32_t h) override; |
+ void setDisplayParams(const DisplayParams& params) override; |
private: |
RasterWindowContext_android(void* platformData, const DisplayParams& params); |
+ void setBuffersGeometry(); |
sk_sp<SkSurface> fBackbufferSurface = nullptr; |
ANativeWindow* fNativeWindow = nullptr; |
ANativeWindow_Buffer fBuffer; |