mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
31 lines
789 B
C++
31 lines
789 B
C++
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "ui/gl/gl_surface.h"
|
|
|
|
namespace gfx {
|
|
|
|
class GL_EXPORT GLSurfaceMac : public GLSurface {
|
|
public:
|
|
GLSurfaceMac(gfx::AcceleratedWidget widget,
|
|
const gfx::SurfaceConfiguration requested_configuration);
|
|
|
|
bool SwapBuffers() override;
|
|
void Destroy() override;
|
|
bool IsOffscreen() override;
|
|
gfx::Size GetSize() override;
|
|
void* GetHandle() override;
|
|
bool Resize(const gfx::Size& size) override;
|
|
bool OnMakeCurrent(GLContext* context) override;
|
|
|
|
private:
|
|
~GLSurfaceMac() override;
|
|
|
|
gfx::AcceleratedWidget widget_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(GLSurfaceMac);
|
|
};
|
|
|
|
} // namespace gfx
|