Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1096)

Unified Diff: ui/gl/gl_image_ozone_native_pixmap.h

Issue 2102443003: Break //ui/gl/ dependency on //ui/ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gl_bindings
Patch Set: Rebase again. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_ozone_native_pixmap.h
diff --git a/ui/gl/gl_image_ozone_native_pixmap.h b/ui/gl/gl_image_ozone_native_pixmap.h
deleted file mode 100644
index 68aadcb24d748cf9c4b65bc604e0d5616df7ad19..0000000000000000000000000000000000000000
--- a/ui/gl/gl_image_ozone_native_pixmap.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 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_OZONE_NATIVE_PIXMAP_H_
-#define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
-
-#include <stdint.h>
-
-#include "ui/gfx/buffer_types.h"
-#include "ui/gl/gl_export.h"
-#include "ui/gl/gl_image_egl.h"
-#include "ui/ozone/public/native_pixmap.h"
-
-namespace gl {
-
-class GL_EXPORT GLImageOzoneNativePixmap : public GLImageEGL {
- public:
- GLImageOzoneNativePixmap(const gfx::Size& size, unsigned internalformat);
-
- bool Initialize(ui::NativePixmap* pixmap, gfx::BufferFormat format);
-
- // Overridden from GLImage:
- unsigned GetInternalFormat() override;
- void Destroy(bool have_context) override;
- bool CopyTexImage(unsigned target) override;
- bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
- int z_order,
- gfx::OverlayTransform transform,
- const gfx::Rect& bounds_rect,
- const gfx::RectF& crop_rect) override;
- void Flush() override;
- void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
- uint64_t process_tracing_id,
- const std::string& dump_name) override;
-
- static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
-
- protected:
- ~GLImageOzoneNativePixmap() override;
-
- private:
- unsigned internalformat_;
- scoped_refptr<ui::NativePixmap> pixmap_;
- bool has_image_flush_external_;
-};
-
-} // namespace gl
-
-#endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698