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

Side by Side Diff: android_webview/browser/gpu_memory_buffer_factory_impl.cc

Issue 13870010: Move GpuMemoryBuffer interface from ui/gl to gpu/command_buffer/client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a syntax error Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 5 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
6 6
7 #include "android_webview/browser/gpu_memory_buffer_impl.h" 7 #include "android_webview/browser/gpu_memory_buffer_impl.h"
8 #include "ui/gfx/size.h"
8 9
9 namespace android_webview { 10 namespace android_webview {
10 11
11 scoped_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(gfx::Size size) { 12 scoped_ptr<gpu::GpuMemoryBuffer> CreateGpuMemoryBuffer(
12 scoped_ptr<GpuMemoryBufferImpl> result(new GpuMemoryBufferImpl(size)); 13 uint32 width, uint32 height) {
13 return result.PassAs<gfx::GpuMemoryBuffer>(); 14 scoped_ptr<GpuMemoryBufferImpl> result(new GpuMemoryBufferImpl(
15 gfx::Size(width, height)));
16 return result.PassAs<gpu::GpuMemoryBuffer>();
14 } 17 }
15 18
16 } // namespace android_webview 19 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698