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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const gfx::Point& offset, | 61 const gfx::Point& offset, |
62 const gfx::Rect& rect) = 0; | 62 const gfx::Rect& rect) = 0; |
63 | 63 |
64 // Schedule image as an overlay plane to be shown at swap time for |widget|. | 64 // Schedule image as an overlay plane to be shown at swap time for |widget|. |
65 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 65 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
66 int z_order, | 66 int z_order, |
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 // Flush any preceding rendering for the image. |
| 72 virtual void Flush() = 0; |
| 73 |
71 // Dumps information about the memory backing the GLImage to a dump named | 74 // Dumps information about the memory backing the GLImage to a dump named |
72 // |dump_name|. | 75 // |dump_name|. |
73 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 76 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
74 uint64_t process_tracing_id, | 77 uint64_t process_tracing_id, |
75 const std::string& dump_name) = 0; | 78 const std::string& dump_name) = 0; |
76 | 79 |
77 // If this returns true, then the command buffer client has requested a | 80 // If this returns true, then the command buffer client has requested a |
78 // CHROMIUM image with internalformat GL_RGB, but the platform only supports | 81 // CHROMIUM image with internalformat GL_RGB, but the platform only supports |
79 // GL_RGBA. The client is responsible for implementing appropriate | 82 // GL_RGBA. The client is responsible for implementing appropriate |
80 // workarounds. The only support that the command buffer provides is format | 83 // workarounds. The only support that the command buffer provides is format |
(...skipping 16 matching lines...) Expand all Loading... |
97 | 100 |
98 private: | 101 private: |
99 friend class base::RefCounted<GLImage>; | 102 friend class base::RefCounted<GLImage>; |
100 | 103 |
101 DISALLOW_COPY_AND_ASSIGN(GLImage); | 104 DISALLOW_COPY_AND_ASSIGN(GLImage); |
102 }; | 105 }; |
103 | 106 |
104 } // namespace gl | 107 } // namespace gl |
105 | 108 |
106 #endif // UI_GL_GL_IMAGE_H_ | 109 #endif // UI_GL_GL_IMAGE_H_ |
OLD | NEW |