Index: ui/gl/gl_image_foobar.h |
diff --git a/ui/gl/gl_image_shm.h b/ui/gl/gl_image_foobar.h |
similarity index 60% |
copy from ui/gl/gl_image_shm.h |
copy to ui/gl/gl_image_foobar.h |
index efff1ed52bc1f251152a0c122cb592c6e93dffa2..19c5efa0694d09901c7b35239ab77d5195695f60 100644 |
--- a/ui/gl/gl_image_shm.h |
+++ b/ui/gl/gl_image_foobar.h |
@@ -2,21 +2,20 @@ |
// 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_ |
+#ifndef UI_GL_GL_IMAGE_FOOBAR_H_ |
+#define UI_GL_GL_IMAGE_FOOBAR_H_ |
-#include "base/memory/scoped_ptr.h" |
#include "ui/gl/gl_image.h" |
namespace gfx { |
-class GL_EXPORT GLImageShm : public GLImage { |
+class GL_EXPORT GLImageFoobar : public GLImage { |
public: |
- GLImageShm(gfx::Size size, unsigned internalformat); |
+ explicit GLImageFoobar(gfx::Size size); |
bool Initialize(gfx::GpuMemoryBufferHandle buffer); |
- // Overridden from GLImage: |
+ // Implement GLImage. |
virtual void Destroy() OVERRIDE; |
virtual gfx::Size GetSize() OVERRIDE; |
virtual bool BindTexImage(unsigned target) OVERRIDE; |
@@ -25,16 +24,15 @@ class GL_EXPORT GLImageShm : public GLImage { |
virtual void DidUseTexImage() OVERRIDE; |
protected: |
- virtual ~GLImageShm(); |
+ virtual ~GLImageFoobar(); |
private: |
- scoped_ptr<base::SharedMemory> shared_memory_; |
gfx::Size size_; |
- unsigned internalformat_; |
+ int prime_fd; |
- DISALLOW_COPY_AND_ASSIGN(GLImageShm); |
+ DISALLOW_COPY_AND_ASSIGN(GLImageFoobar); |
}; |
} // namespace gfx |
-#endif // UI_GL_GL_IMAGE_SHM_H_ |
+#endif // UI_GL_GL_IMAGE_FOOBAR_H_ |