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

Side by Side Diff: cc/raster/raster_buffer_provider.cc

Issue 2786103003: Add half-float IOSurface GpuMemoryBuffer support (Closed)
Patch Set: Review feedback Created 3 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
« no previous file with comments | « no previous file | cc/resources/resource_format.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "cc/raster/raster_buffer_provider.h" 5 #include "cc/raster/raster_buffer_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/raster/raster_source.h" 10 #include "cc/raster/raster_source.h"
(...skipping 10 matching lines...) Expand all
21 21
22 RasterBufferProvider::~RasterBufferProvider() {} 22 RasterBufferProvider::~RasterBufferProvider() {}
23 23
24 namespace { 24 namespace {
25 25
26 bool IsSupportedPlaybackToMemoryFormat(ResourceFormat format) { 26 bool IsSupportedPlaybackToMemoryFormat(ResourceFormat format) {
27 switch (format) { 27 switch (format) {
28 case RGBA_4444: 28 case RGBA_4444:
29 case RGBA_8888: 29 case RGBA_8888:
30 case BGRA_8888: 30 case BGRA_8888:
31 case RGBA_F16:
32 case ETC1: 31 case ETC1:
33 return true; 32 return true;
34 case ALPHA_8: 33 case ALPHA_8:
35 case LUMINANCE_8: 34 case LUMINANCE_8:
36 case RGB_565: 35 case RGB_565:
37 case RED_8: 36 case RED_8:
38 case LUMINANCE_F16: 37 case LUMINANCE_F16:
38 case RGBA_F16:
39 return false; 39 return false;
40 } 40 }
41 NOTREACHED(); 41 NOTREACHED();
42 return false; 42 return false;
43 } 43 }
44 44
45 } // anonymous namespace 45 } // anonymous namespace
46 46
47 // static 47 // static
48 void RasterBufferProvider::PlaybackToMemory( 48 void RasterBufferProvider::PlaybackToMemory(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 case RED_8: 147 case RED_8:
148 case LUMINANCE_F16: 148 case LUMINANCE_F16:
149 case RGBA_F16: 149 case RGBA_F16:
150 return false; 150 return false;
151 } 151 }
152 NOTREACHED(); 152 NOTREACHED();
153 return false; 153 return false;
154 } 154 }
155 155
156 } // namespace cc 156 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/resources/resource_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698