| 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_MEMORY_H_ | 5 #ifndef UI_GL_GL_IMAGE_MEMORY_H_ |
| 6 #define UI_GL_GL_IMAGE_MEMORY_H_ | 6 #define UI_GL_GL_IMAGE_MEMORY_H_ |
| 7 | 7 |
| 8 #include "ui/gl/gl_image.h" | 8 #include "ui/gl/gl_image.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 bool CopyTexSubImage(unsigned target, | 34 bool CopyTexSubImage(unsigned target, |
| 35 const gfx::Point& offset, | 35 const gfx::Point& offset, |
| 36 const gfx::Rect& rect) override; | 36 const gfx::Rect& rect) override; |
| 37 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 37 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 38 int z_order, | 38 int z_order, |
| 39 gfx::OverlayTransform transform, | 39 gfx::OverlayTransform transform, |
| 40 const gfx::Rect& bounds_rect, | 40 const gfx::Rect& bounds_rect, |
| 41 const gfx::RectF& crop_rect) override; | 41 const gfx::RectF& crop_rect) override; |
| 42 | 42 |
| 43 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); | 43 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); |
| 44 void Flush() override {} |
| 44 | 45 |
| 45 protected: | 46 protected: |
| 46 ~GLImageMemory() override; | 47 ~GLImageMemory() override; |
| 47 | 48 |
| 48 gfx::BufferFormat format() const { return format_; } | 49 gfx::BufferFormat format() const { return format_; } |
| 49 size_t stride() const { return stride_; } | 50 size_t stride() const { return stride_; } |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 const gfx::Size size_; | 53 const gfx::Size size_; |
| 53 const unsigned internalformat_; | 54 const unsigned internalformat_; |
| 54 const unsigned char* memory_; | 55 const unsigned char* memory_; |
| 55 gfx::BufferFormat format_; | 56 gfx::BufferFormat format_; |
| 56 size_t stride_; | 57 size_t stride_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); | 59 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace gl | 62 } // namespace gl |
| 62 | 63 |
| 63 #endif // UI_GL_GL_IMAGE_MEMORY_H_ | 64 #endif // UI_GL_GL_IMAGE_MEMORY_H_ |
| OLD | NEW |