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

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

Issue 2999923002: Revert of 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,
21 unsigned internalformat) { 20 unsigned internalformat) {
22 NOTREACHED(); 21 NOTREACHED();
23 return nullptr; 22 return nullptr;
24 } 23 }
25 24
26 unsigned ImageFactory::RequiredTextureType() { 25 unsigned ImageFactory::RequiredTextureType() {
27 NOTIMPLEMENTED(); 26 NOTIMPLEMENTED();
28 return 0; 27 return 0;
29 } 28 }
30 29
31 bool ImageFactory::SupportsFormatRGB() { 30 bool ImageFactory::SupportsFormatRGB() {
32 return true; 31 return true;
33 } 32 }
34 33
35 } // namespace gpu 34 } // 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