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

Side by Side Diff: gpu/command_buffer/service/image_factory.cc

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 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 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/command_buffer/service/image_factory.h" 5 #include "gpu/command_buffer/service/image_factory.h"
6 6
7 #include "ui/gl/gl_image.h" 7 #include "ui/gl/gl_image.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
11 ImageFactory::ImageFactory() { 11 ImageFactory::ImageFactory() {
12 } 12 }
13 13
14 ImageFactory::~ImageFactory() { 14 ImageFactory::~ImageFactory() {
15 } 15 }
16 16
17 scoped_refptr<gl::GLImage> ImageFactory::CreateAnonymousImage( 17 scoped_refptr<gl::GLImage> ImageFactory::CreateAnonymousImage(
18 const gfx::Size& size, 18 const gfx::Size& size,
19 gfx::BufferFormat format, 19 gfx::BufferFormat format,
20 gfx::BufferUsage usage,
20 unsigned internalformat) { 21 unsigned internalformat) {
21 NOTREACHED(); 22 NOTREACHED();
22 return nullptr; 23 return nullptr;
23 } 24 }
24 25
25 unsigned ImageFactory::RequiredTextureType() { 26 unsigned ImageFactory::RequiredTextureType() {
26 NOTIMPLEMENTED(); 27 NOTIMPLEMENTED();
27 return 0; 28 return 0;
28 } 29 }
29 30
30 bool ImageFactory::SupportsFormatRGB() { 31 bool ImageFactory::SupportsFormatRGB() {
31 return true; 32 return true;
32 } 33 }
33 34
34 } // namespace gpu 35 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/image_factory.h ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698