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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/trace_event/process_memory_dump.h" |
9 #include "ui/gfx/geometry/point.h" | 10 #include "ui/gfx/geometry/point.h" |
10 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
11 #include "ui/gfx/geometry/rect_f.h" | 12 #include "ui/gfx/geometry/rect_f.h" |
12 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
13 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
14 #include "ui/gfx/overlay_transform.h" | 15 #include "ui/gfx/overlay_transform.h" |
15 #include "ui/gl/gl_export.h" | 16 #include "ui/gl/gl_export.h" |
16 | 17 |
17 namespace gfx { | 18 namespace gfx { |
18 | 19 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Called after the texture image data has been modified. | 55 // Called after the texture image data has been modified. |
55 virtual void DidModifyTexImage() = 0; | 56 virtual void DidModifyTexImage() = 0; |
56 | 57 |
57 // Schedule image as an overlay plane to be shown at swap time for |widget|. | 58 // Schedule image as an overlay plane to be shown at swap time for |widget|. |
58 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 59 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
59 int z_order, | 60 int z_order, |
60 OverlayTransform transform, | 61 OverlayTransform transform, |
61 const Rect& bounds_rect, | 62 const Rect& bounds_rect, |
62 const RectF& crop_rect) = 0; | 63 const RectF& crop_rect) = 0; |
63 | 64 |
| 65 virtual void DumpMemory(base::trace_event::ProcessMemoryDump* pmd, |
| 66 uint64_t process_tracing_id, |
| 67 const std::string& dump_name) = 0; |
| 68 |
64 protected: | 69 protected: |
65 virtual ~GLImage() {} | 70 virtual ~GLImage() {} |
66 | 71 |
67 private: | 72 private: |
68 friend class base::RefCounted<GLImage>; | 73 friend class base::RefCounted<GLImage>; |
69 | 74 |
70 DISALLOW_COPY_AND_ASSIGN(GLImage); | 75 DISALLOW_COPY_AND_ASSIGN(GLImage); |
71 }; | 76 }; |
72 | 77 |
73 } // namespace gfx | 78 } // namespace gfx |
74 | 79 |
75 #endif // UI_GL_GL_IMAGE_H_ | 80 #endif // UI_GL_GL_IMAGE_H_ |
OLD | NEW |