7bb0ff05ce
Adds a type enum to WindowContext to determine which kind of GPU context (GrDirectContext or skgpu::Context) we're using. Bug: skia:12466 Change-Id: I288878740392a43cd9e82c925fbe2c372d140dc5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454699 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
23 lines
487 B
C++
23 lines
487 B
C++
/*
|
|
* Copyright 2020 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "tools/sk_app/WindowContext.h"
|
|
|
|
#include "include/gpu/GrDirectContext.h"
|
|
#ifdef SK_GRAPHITE_ENABLED
|
|
#include "experimental/graphite/include/Context.h"
|
|
#endif
|
|
|
|
namespace sk_app {
|
|
|
|
WindowContext::WindowContext(const DisplayParams& params)
|
|
: fDisplayParams(params) {}
|
|
|
|
WindowContext::~WindowContext() {}
|
|
|
|
} //namespace sk_app
|