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

Unified Diff: ui/gl/gl_image_memory.h

Issue 1323593003: Log both GL and cpu-side memory in GLImage*Memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « no previous file | ui/gl/gl_image_memory.cc » ('j') | ui/gl/gl_image_memory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_memory.h
diff --git a/ui/gl/gl_image_memory.h b/ui/gl/gl_image_memory.h
index be35dd7676b7257e340f5c5d1b26499e876b6e97..e9f96959ef01c34bdbba5f959a905c793c88277d 100644
--- a/ui/gl/gl_image_memory.h
+++ b/ui/gl/gl_image_memory.h
@@ -46,15 +46,17 @@ class GL_EXPORT GLImageMemory : public GLImage {
OverlayTransform transform,
const Rect& bounds_rect,
const RectF& crop_rect) override;
- void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
- uint64_t process_tracing_id,
- const std::string& dump_name) override;
protected:
~GLImageMemory() override;
BufferFormat format() const { return format_; }
+ // Called by sub-classes to ask GLImageMemory to dump the GLTexture portion
+ // of its memory usage.
+ void DumpGLTexture(base::trace_event::ProcessMemoryDump* pmd,
reveman 2015/08/28 18:18:43 nit: OnTextureMemoryDump maybe?
ericrk 2015/08/31 17:19:32 done.
+ const std::string& dump_name);
+
private:
void DoBindTexImage(unsigned target);
« no previous file with comments | « no previous file | ui/gl/gl_image_memory.cc » ('j') | ui/gl/gl_image_memory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698