
Removes `#include "base/macros.h"` from files in ui/ that do not contain `ignore_result(`. Bug: 1010217 Change-Id: I6a7be30599db4d98495d895040da7af98a34f921 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3274994 Commit-Queue: Peter Boström <pbos@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Owners-Override: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#940667}
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
// Copyright 2020 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.
|
|
|
|
#ifndef UI_GL_GL_IMAGE_GLX_NATIVE_PIXMAP_H_
|
|
#define UI_GL_GL_IMAGE_GLX_NATIVE_PIXMAP_H_
|
|
|
|
#include "base/memory/scoped_refptr.h"
|
|
#include "ui/gfx/buffer_types.h"
|
|
#include "ui/gfx/geometry/size.h"
|
|
#include "ui/gfx/native_pixmap.h"
|
|
#include "ui/gl/gl_export.h"
|
|
#include "ui/gl/gl_image_glx.h"
|
|
|
|
namespace gl {
|
|
|
|
class GL_EXPORT GLImageGLXNativePixmap : public GLImageGLX {
|
|
public:
|
|
GLImageGLXNativePixmap(const gfx::Size& size,
|
|
gfx::BufferFormat format,
|
|
gfx::BufferPlane plane = gfx::BufferPlane::DEFAULT);
|
|
|
|
GLImageGLXNativePixmap(const GLImageGLXNativePixmap&) = delete;
|
|
GLImageGLXNativePixmap& operator=(const GLImageGLXNativePixmap&) = delete;
|
|
|
|
bool Initialize(scoped_refptr<gfx::NativePixmap> pixmap);
|
|
|
|
protected:
|
|
~GLImageGLXNativePixmap() override;
|
|
|
|
private:
|
|
scoped_refptr<gfx::NativePixmap> native_pixmap_;
|
|
};
|
|
|
|
} // namespace gl
|
|
|
|
#endif // UI_GL_GL_IMAGE_GLX_NATIVE_PIXMAP_H_
|