diff options
author | reveman <reveman@chromium.org> | 2015-07-23 10:10:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-23 17:11:34 +0000 |
commit | 0acf6b63f0ed6b86883960c89091cc531441e25a (patch) | |
tree | 418643bcc36beea9e9beb349e7bb470f83d23566 /gpu | |
parent | f3897dad4dade2bebd0f8d2fe2f3158984c3bf97 (diff) | |
download | chromium_src-0acf6b63f0ed6b86883960c89091cc531441e25a.zip chromium_src-0acf6b63f0ed6b86883960c89091cc531441e25a.tar.gz chromium_src-0acf6b63f0ed6b86883960c89091cc531441e25a.tar.bz2 |
content: Use the memory-infra graph API for GpuMemoryBufferManager.
This makes BrowserGpuMemoryBufferManager emit dumps of the form:
gpumemorybuffer/client_X/buffer_Y
This allows child process GpuMemoryBuffer clients to create a dump
for the same buffer by attaching the same guid to it. By doing that,
the trace-viewer UI can infer that the two buffers, that are,
"gpumemorybuffer/client_X/buffer_Y" on the browser side and
"gpumemorybuffer/buffer_Y" on the child side, refer to the same
memory and should be counted only once.
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1230133008
Cr-Commit-Position: refs/heads/master@{#340104}
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/tests/gl_manager.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc index eee18aa..6dc8a10 100644 --- a/gpu/command_buffer/tests/gl_manager.cc +++ b/gpu/command_buffer/tests/gl_manager.cc @@ -159,6 +159,10 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer { for (size_t i = 0; i < num_planes; ++i) stride[i] = StrideInBytes(size_.width(), format_, i); } + gfx::GpuMemoryBufferId GetId() const override { + NOTREACHED(); + return 0; + } gfx::GpuMemoryBufferHandle GetHandle() const override { NOTREACHED(); return gfx::GpuMemoryBufferHandle(); |