blob: 0393e9a0ba2ac10811e04e06f37ce3d5fd7773a6 [file] [log] [blame]
liyuqiand94ad582016-06-07 14:22:37 -07001
2/*
3 * Copyright 2016 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8#ifndef RasterWindowContext_DEFINED
9#define RasterWindowContext_DEFINED
10
11#include "WindowContext.h"
12
13namespace sk_app {
14
15class RasterWindowContext : public WindowContext {
16public:
liyuqiand94ad582016-06-07 14:22:37 -070017 // Explicitly convert nullptr to GrBackendContext is needed for compiling
18 GrBackendContext getBackendContext() override { return (GrBackendContext) nullptr; }
19
20protected:
21 bool isGpuContext() override { return false; }
22};
23
24} // namespace sk_app
25
26#endif