| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef UI_GL_GL_IMAGE_H_ |
| 6 #define UI_GL_GL_IMAGE_H_ | 6 #define UI_GL_GL_IMAGE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 gfx::OverlayTransform transform, | 67 gfx::OverlayTransform transform, |
| 68 const gfx::Rect& bounds_rect, | 68 const gfx::Rect& bounds_rect, |
| 69 const gfx::RectF& crop_rect) = 0; | 69 const gfx::RectF& crop_rect) = 0; |
| 70 | 70 |
| 71 // Dumps information about the memory backing the GLImage to a dump named | 71 // Dumps information about the memory backing the GLImage to a dump named |
| 72 // |dump_name|. | 72 // |dump_name|. |
| 73 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 73 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 74 uint64_t process_tracing_id, | 74 uint64_t process_tracing_id, |
| 75 const std::string& dump_name) = 0; | 75 const std::string& dump_name) = 0; |
| 76 | 76 |
| 77 // Whether the image is emulating an (GL_RGB or GL_BGR) internal format with |
| 78 // (GL_RGBA or GL_BGRA). |
| 79 virtual bool EmulatingRGB() const = 0; |
| 80 |
| 77 protected: | 81 protected: |
| 78 virtual ~GLImage() {} | 82 virtual ~GLImage() {} |
| 79 | 83 |
| 80 private: | 84 private: |
| 81 friend class base::RefCounted<GLImage>; | 85 friend class base::RefCounted<GLImage>; |
| 82 | 86 |
| 83 DISALLOW_COPY_AND_ASSIGN(GLImage); | 87 DISALLOW_COPY_AND_ASSIGN(GLImage); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 } // namespace gl | 90 } // namespace gl |
| 87 | 91 |
| 88 #endif // UI_GL_GL_IMAGE_H_ | 92 #endif // UI_GL_GL_IMAGE_H_ |
| OLD | NEW |