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

Unified Diff: ui/gl/gl_image_io_surface.h

Issue 1299713003: GLImage::OnMemoryDump Stubs + Some Impls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@images1.3
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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_image_io_surface.h
diff --git a/ui/gl/gl_image_io_surface.h b/ui/gl/gl_image_io_surface.h
index e513b93d8fd0d85e2ef070e687896a54720560f6..b3b5e73a683ceda405c177858f7271d0a512c1f8 100644
--- a/ui/gl/gl_image_io_surface.h
+++ b/ui/gl/gl_image_io_surface.h
@@ -22,7 +22,9 @@ namespace gfx {
class GL_EXPORT GLImageIOSurface : public GLImage {
public:
- GLImageIOSurface(const gfx::Size& size, unsigned internalformat);
+ GLImageIOSurface(gfx::GenericSharedMemoryId io_surface_id,
+ const gfx::Size& size,
+ unsigned internalformat);
bool Initialize(IOSurfaceRef io_surface, BufferFormat format);
@@ -50,10 +52,15 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
static void SetLayerForWidget(gfx::AcceleratedWidget widget,
CALayer* layer);
+ void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
reveman 2015/08/18 08:32:52 nit: move below ScheduleOverlayPlane and make sure
ericrk 2015/08/18 09:00:47 Done.
+ uint64_t process_tracing_id,
+ const std::string& dump_name) override;
+
protected:
~GLImageIOSurface() override;
private:
+ gfx::GenericSharedMemoryId io_surface_id_;
const gfx::Size size_;
const unsigned internalformat_;
BufferFormat format_;

Powered by Google App Engine
This is Rietveld 408576698