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

Unified Diff: blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc

Issue 2266863003: blimp: Move BlimpCompositor to use delegated rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make gn happy Created 4 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: blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc
diff --git a/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc b/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc
index ad158afb28ff87b992c12135f1924f131cfb9bed..4575637492c6211ed4cbfef51ce9ec9b2d1c75d8 100644
--- a/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc
+++ b/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.h"
-
+#include <blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.h>
#include <GLES2/gl2.h>
#include <stddef.h>
#include <stdint.h>
@@ -38,8 +37,7 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
// Overridden from gfx::GpuMemoryBuffer:
bool Map() override {
DCHECK(!mapped_);
- DCHECK_EQ(stride_, gfx::RowSizeForBufferFormat(size_.width(),
- format_, 0));
+ DCHECK_EQ(stride_, gfx::RowSizeForBufferFormat(size_.width(), format_, 0));
if (!shared_memory_->Map(offset_ +
gfx::BufferSizeForBufferFormat(size_, format_)))
return false;
@@ -51,7 +49,7 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
DCHECK(mapped_);
DCHECK_LT(plane, gfx::NumberOfPlanesForBufferFormat(format_));
return reinterpret_cast<uint8_t*>(shared_memory_->memory()) + offset_ +
- gfx::BufferOffsetForBufferFormat(size_, format_, plane);
+ gfx::BufferOffsetForBufferFormat(size_, format_, plane);
}
void Unmap() override {

Powered by Google App Engine
This is Rietveld 408576698