| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GL_GL_IMAGE_REF_COUNTED_MEMORY_H_ | 5 #ifndef UI_GL_GL_IMAGE_REF_COUNTED_MEMORY_H_ |
| 6 #define UI_GL_GL_IMAGE_REF_COUNTED_MEMORY_H_ | 6 #define UI_GL_GL_IMAGE_REF_COUNTED_MEMORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "ui/gl/gl_export.h" |
| 12 #include "ui/gl/gl_image_memory.h" | 13 #include "ui/gl/gl_image_memory.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class RefCountedMemory; | 16 class RefCountedMemory; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace gl { | 19 namespace gl { |
| 19 | 20 |
| 20 class GL_EXPORT GLImageRefCountedMemory : public gl::GLImageMemory { | 21 class GL_EXPORT GLImageRefCountedMemory : public gl::GLImageMemory { |
| 21 public: | 22 public: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 scoped_refptr<base::RefCountedMemory> ref_counted_memory_; | 38 scoped_refptr<base::RefCountedMemory> ref_counted_memory_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(GLImageRefCountedMemory); | 40 DISALLOW_COPY_AND_ASSIGN(GLImageRefCountedMemory); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace gl | 43 } // namespace gl |
| 43 | 44 |
| 44 #endif // UI_GL_GL_IMAGE_REF_COUNTED_MEMORY_H_ | 45 #endif // UI_GL_GL_IMAGE_REF_COUNTED_MEMORY_H_ |
| OLD | NEW |