| 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_SHARED_MEMORY_H_ | 5 #ifndef UI_GL_GL_IMAGE_SHARED_MEMORY_H_ |
| 6 #define UI_GL_GL_IMAGE_SHARED_MEMORY_H_ | 6 #define UI_GL_GL_IMAGE_SHARED_MEMORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/shared_memory_handle.h" | 14 #include "base/memory/shared_memory_handle.h" |
| 15 #include "ui/gfx/generic_shared_memory_id.h" | 15 #include "ui/gfx/generic_shared_memory_id.h" |
| 16 #include "ui/gl/gl_export.h" |
| 16 #include "ui/gl/gl_image_memory.h" | 17 #include "ui/gl/gl_image_memory.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class SharedMemory; | 20 class SharedMemory; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace gl { | 23 namespace gl { |
| 23 | 24 |
| 24 class GL_EXPORT GLImageSharedMemory : public GLImageMemory { | 25 class GL_EXPORT GLImageSharedMemory : public GLImageMemory { |
| 25 public: | 26 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 43 private: | 44 private: |
| 44 std::unique_ptr<base::SharedMemory> shared_memory_; | 45 std::unique_ptr<base::SharedMemory> shared_memory_; |
| 45 gfx::GenericSharedMemoryId shared_memory_id_; | 46 gfx::GenericSharedMemoryId shared_memory_id_; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(GLImageSharedMemory); | 48 DISALLOW_COPY_AND_ASSIGN(GLImageSharedMemory); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace gl | 51 } // namespace gl |
| 51 | 52 |
| 52 #endif // UI_GL_GL_IMAGE_SHARED_MEMORY_H_ | 53 #endif // UI_GL_GL_IMAGE_SHARED_MEMORY_H_ |
| OLD | NEW |