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

Unified Diff: ui/gl/gl_image_egl.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_image.h ('k') | ui/gl/gl_image_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_egl.h
diff --git a/ui/gl/gl_image_egl.h b/ui/gl/gl_image_egl.h
index 14cc40b42277cbde05dc598f69ead312326966d4..85598ce6b96a598bca883e17cd670c8e598db7e3 100644
--- a/ui/gl/gl_image_egl.h
+++ b/ui/gl/gl_image_egl.h
@@ -6,6 +6,8 @@
#define UI_GL_GL_IMAGE_EGL_H_
#include "base/threading/thread_checker.h"
+#include "base/trace_event/generic_shared_memory_id.h"
+#include "base/trace_event/memory_allocator_dump.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_image.h"
@@ -15,7 +17,10 @@ class GL_EXPORT GLImageEGL : public GLImage {
public:
explicit GLImageEGL(const gfx::Size& size);
- bool Initialize(EGLenum target, EGLClientBuffer buffer, const EGLint* attrs);
+ bool Initialize(base::trace_event::GenericSharedMemoryId shared_memory_id,
+ EGLenum target,
+ EGLClientBuffer buffer,
+ const EGLint* attrs);
// Overridden from GLImage:
void Destroy(bool have_context) override;
@@ -35,10 +40,14 @@ class GL_EXPORT GLImageEGL : public GLImage {
OverlayTransform transform,
const Rect& bounds_rect,
const RectF& crop_rect) override;
+ void DumpMemory(base::trace_event::ProcessMemoryDump* pmd,
+ uint64_t process_tracing_id,
+ const std::string& dump_name) override;
protected:
~GLImageEGL() override;
+ base::trace_event::GenericSharedMemoryId shared_memory_id_;
EGLImageKHR egl_image_;
const gfx::Size size_;
base::ThreadChecker thread_checker_;
« no previous file with comments | « ui/gl/gl_image.h ('k') | ui/gl/gl_image_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698