RasterWindowContext.h 517 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef RasterWindowContext_DEFINED
  8. #define RasterWindowContext_DEFINED
  9. #include "tools/sk_app/WindowContext.h"
  10. namespace sk_app {
  11. class RasterWindowContext : public WindowContext {
  12. public:
  13. RasterWindowContext(const DisplayParams& params) : WindowContext(params) {}
  14. protected:
  15. bool isGpuContext() override { return false; }
  16. };
  17. } // namespace sk_app
  18. #endif