summaryrefslogtreecommitdiffstats
path: root/content/browser/compositor/buffer_queue.cc
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2014-10-03 16:27:07 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-03 23:27:25 +0000
commit70672e94d9e6596d70fa5e59b49deecb5ae2fae1 (patch)
treed1dc9b5246a89774c80d51f71e81e519d9a8a0c9 /content/browser/compositor/buffer_queue.cc
parent9f7cc9935d1ba9143e61e2a74e288c866053722d (diff)
downloadchromium_src-70672e94d9e6596d70fa5e59b49deecb5ae2fae1.zip
chromium_src-70672e94d9e6596d70fa5e59b49deecb5ae2fae1.tar.gz
chromium_src-70672e94d9e6596d70fa5e59b49deecb5ae2fae1.tar.bz2
content: Use CHROMIUM_gpu_memory_buffer_image instead of CHROMIUM_image for BufferQueue.
This is now the preferred way to create an image when it doesn't need to be mapped as the implementation can chose whatever pixel format is ideal with for the current platform and driver. BUG=418553 Review URL: https://codereview.chromium.org/615963002 Cr-Commit-Position: refs/heads/master@{#298115}
Diffstat (limited to 'content/browser/compositor/buffer_queue.cc')
-rw-r--r--content/browser/compositor/buffer_queue.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/content/browser/compositor/buffer_queue.cc b/content/browser/compositor/buffer_queue.cc
index f265fcc..2121059 100644
--- a/content/browser/compositor/buffer_queue.cc
+++ b/content/browser/compositor/buffer_queue.cc
@@ -155,13 +155,13 @@ BufferQueue::AllocatedSurface BufferQueue::GetNextSurface() {
// We don't want to allow anything more than triple buffering.
DCHECK_LT(allocated_count_, 4U);
- unsigned int id = gl->CreateImageCHROMIUM(
- size_.width(),
- size_.height(),
- internalformat_,
- GL_IMAGE_SCANOUT_CHROMIUM);
+ unsigned int id =
+ gl->CreateGpuMemoryBufferImageCHROMIUM(size_.width(),
+ size_.height(),
+ internalformat_,
+ GL_SCANOUT_CHROMIUM);
if (!id) {
- LOG(ERROR) << "Failed to allocate backing CreateImageCHROMIUM surface";
+ LOG(ERROR) << "Failed to allocate backing image surface";
gl->DeleteTextures(1, &texture);
return AllocatedSurface();
}