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

Side by Side Diff: gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error on Windows. Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.h" 5 #include "gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.h"
6 6
7 #include "gpu/ipc/common/android/surface_texture_manager.h" 7 #include "gpu/ipc/common/android/surface_texture_manager.h"
8 #include "ui/gl/android/surface_texture.h" 8 #include "ui/gl/android/surface_texture.h"
9 #include "ui/gl/gl_image_surface_texture.h" 9 #include "ui/gl/gl_image_surface_texture.h"
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return scoped_refptr<gl::GLImage>(); 87 return scoped_refptr<gl::GLImage>();
88 88
89 scoped_refptr<gl::GLImageSurfaceTexture> image( 89 scoped_refptr<gl::GLImageSurfaceTexture> image(
90 new gl::GLImageSurfaceTexture(size)); 90 new gl::GLImageSurfaceTexture(size));
91 if (!image->Initialize(it->second.get())) 91 if (!image->Initialize(it->second.get()))
92 return scoped_refptr<gl::GLImage>(); 92 return scoped_refptr<gl::GLImage>();
93 93
94 return image; 94 return image;
95 } 95 }
96 96
97 scoped_refptr<gl::GLImage>
98 GpuMemoryBufferFactorySurfaceTexture::CreateAnonymousImage(
99 const gfx::Size& size,
100 gfx::BufferFormat format,
101 unsigned internalformat) {
102 NOTIMPLEMENTED();
103 return nullptr;
104 }
105
97 } // namespace gpu 106 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698