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

Unified Diff: ui/gl/gl_image_shm.h

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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_image_shared_memory.cc ('k') | ui/gl/gl_image_shm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_shm.h
diff --git a/ui/gl/gl_image_shm.h b/ui/gl/gl_image_shm.h
deleted file mode 100644
index 079bab90d0ad4164e3070d245836ff3944221e35..0000000000000000000000000000000000000000
--- a/ui/gl/gl_image_shm.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2013 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_SHM_H_
-#define UI_GL_GL_IMAGE_SHM_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/gl/gl_bindings.h"
-#include "ui/gl/gl_image.h"
-
-namespace gfx {
-
-class GL_EXPORT GLImageShm : public GLImage {
- public:
- GLImageShm(gfx::Size size, unsigned internalformat);
-
- bool Initialize(gfx::GpuMemoryBufferHandle buffer);
-
- // Overridden from GLImage:
- virtual void Destroy() OVERRIDE;
- virtual gfx::Size GetSize() OVERRIDE;
- virtual bool BindTexImage(unsigned target) OVERRIDE;
- virtual void ReleaseTexImage(unsigned target) OVERRIDE {}
- virtual void WillUseTexImage() OVERRIDE {}
- virtual void DidUseTexImage() OVERRIDE {}
- virtual void WillModifyTexImage() OVERRIDE {}
- virtual void DidModifyTexImage() OVERRIDE {}
-
- protected:
- virtual ~GLImageShm();
-
- private:
- scoped_ptr<base::SharedMemory> shared_memory_;
- gfx::Size size_;
- unsigned internalformat_;
-#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
- defined(USE_OZONE)
- GLuint egl_texture_id_;
- EGLImageKHR egl_image_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(GLImageShm);
-};
-
-} // namespace gfx
-
-#endif // UI_GL_GL_IMAGE_SHM_H_
« no previous file with comments | « ui/gl/gl_image_shared_memory.cc ('k') | ui/gl/gl_image_shm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698