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

Unified Diff: gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 9 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: gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc b/gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
similarity index 93%
rename from content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
rename to gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
index 1382451ed51fbd3ff1e475cbe2bbd01d8f3f9975..5ff527e2dafa79ddc8674b83bf23f944413c18f4 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
+++ b/gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h"
+#include "gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.h"
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
@@ -12,7 +12,7 @@
#include "ui/gl/android/surface_texture.h"
#include "ui/gl/gl_bindings.h"
-namespace content {
+namespace gpu {
namespace {
int WindowFormat(gfx::BufferFormat format) {
@@ -75,8 +75,8 @@ GpuMemoryBufferImplSurfaceTexture::CreateFromHandle(
if (!native_window)
return nullptr;
- ANativeWindow_setBuffersGeometry(
- native_window, size.width(), size.height(), WindowFormat(format));
+ ANativeWindow_setBuffersGeometry(native_window, size.width(), size.height(),
+ WindowFormat(format));
return make_scoped_ptr(new GpuMemoryBufferImplSurfaceTexture(
handle.id, size, format, callback, native_window));
@@ -139,12 +139,12 @@ int GpuMemoryBufferImplSurfaceTexture::stride(size_t plane) const {
return gfx::RowSizeForBufferFormat(buffer_.stride, format_, 0);
}
-gfx::GpuMemoryBufferHandle
-GpuMemoryBufferImplSurfaceTexture::GetHandle() const {
+gfx::GpuMemoryBufferHandle GpuMemoryBufferImplSurfaceTexture::GetHandle()
+ const {
gfx::GpuMemoryBufferHandle handle;
handle.type = gfx::SURFACE_TEXTURE_BUFFER;
handle.id = id_;
return handle;
}
-} // namespace content
+} // namespace gpu
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.h ('k') | gpu/ipc/client/gpu_memory_buffer_impl_test_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698