af236b5aa9
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1978573003 Committed: https://skia.googlesource.com/skia/+/56a11e4d6f3d436a3c2497c9c9e71a117d78a93f Review-Url: https://codereview.chromium.org/1978573003
38 lines
768 B
C++
38 lines
768 B
C++
|
|
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef GLWindowContext_win_DEFINED
|
|
#define GLWindowContext_win_DEFINED
|
|
|
|
#include <windows.h>
|
|
#include "../GLWindowContext.h"
|
|
|
|
namespace sk_app {
|
|
|
|
class GLWindowContext_win : public GLWindowContext {
|
|
public:
|
|
friend GLWindowContext* GLWindowContext::Create(void* platformData, const DisplayParams&);
|
|
|
|
~GLWindowContext_win() override;
|
|
|
|
void onSwapBuffers() override;
|
|
|
|
void onInitializeContext(void*, const DisplayParams&) override;
|
|
void onDestroyContext() override;
|
|
|
|
private:
|
|
GLWindowContext_win(void*, const DisplayParams&);
|
|
|
|
HWND fHWND;
|
|
HGLRC fHGLRC;
|
|
};
|
|
|
|
|
|
}
|
|
|
|
#endif
|