Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ui/gl/gl_image.h

Issue 1263913002: FREEZE.unindexed Base URL: https://chromium.googlesource.com/chromium/src.git@textures3
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698