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

Unified Diff: ui/gl/gl_image_foobar.h

Issue 186123006: zero copy - NOT FOR REVIEW Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minus ui-map-image and ui-impl-side setting, plus tiled mode Created 6 years, 9 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_foobar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_foobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698