| Index: ui/gl/gl_image_surface_texture.h
|
| diff --git a/ui/gl/gl_image_shm.h b/ui/gl/gl_image_surface_texture.h
|
| similarity index 54%
|
| copy from ui/gl/gl_image_shm.h
|
| copy to ui/gl/gl_image_surface_texture.h
|
| index efff1ed52bc1f251152a0c122cb592c6e93dffa2..f7d2b19bc6aa5bc94bde523f4deabc3daa3d6016 100644
|
| --- a/ui/gl/gl_image_shm.h
|
| +++ b/ui/gl/gl_image_surface_texture.h
|
| @@ -1,18 +1,21 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 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_
|
| +#ifndef UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
|
| +#define UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
|
|
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "ui/gl/gl_image.h"
|
|
|
| +#include "base/memory/ref_counted.h"
|
| +
|
| namespace gfx {
|
|
|
| -class GL_EXPORT GLImageShm : public GLImage {
|
| +class SurfaceTexture;
|
| +
|
| +class GL_EXPORT GLImageSurfaceTexture : public GLImage {
|
| public:
|
| - GLImageShm(gfx::Size size, unsigned internalformat);
|
| + explicit GLImageSurfaceTexture(gfx::Size size);
|
|
|
| bool Initialize(gfx::GpuMemoryBufferHandle buffer);
|
|
|
| @@ -25,16 +28,15 @@ class GL_EXPORT GLImageShm : public GLImage {
|
| virtual void DidUseTexImage() OVERRIDE;
|
|
|
| protected:
|
| - virtual ~GLImageShm();
|
| + virtual ~GLImageSurfaceTexture();
|
|
|
| private:
|
| - scoped_ptr<base::SharedMemory> shared_memory_;
|
| + scoped_refptr<SurfaceTexture> surface_texture_;
|
| gfx::Size size_;
|
| - unsigned internalformat_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(GLImageShm);
|
| + DISALLOW_COPY_AND_ASSIGN(GLImageSurfaceTexture);
|
| };
|
|
|
| } // namespace gfx
|
|
|
| -#endif // UI_GL_GL_IMAGE_SHM_H_
|
| +#endif // UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
|
|
|