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

Side by Side Diff: cc/resources/resource_format.cc

Issue 2273193002: Make compositor_frame.h NOT include base/trace_event/trace_event.h (Closed)
Patch Set: Rebase again + presubmit fix Created 4 years, 3 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 | « cc/resources/resource_format.h ('k') | cc/test/ordered_texture_map.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/resources/resource_format.h" 5 #include "cc/resources/resource_format.h"
6 6
7 #include "third_party/khronos/GLES2/gl2.h" 7 #include "third_party/khronos/GLES2/gl2.h"
8 #include "third_party/khronos/GLES2/gl2ext.h" 8 #include "third_party/khronos/GLES2/gl2ext.h"
9 #include "ui/gfx/gpu_memory_buffer.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 int BitsPerPixel(ResourceFormat format) { 13 int BitsPerPixel(ResourceFormat format) {
13 switch (format) { 14 switch (format) {
14 case BGRA_8888: 15 case BGRA_8888:
15 case RGBA_8888: 16 case RGBA_8888:
16 return 32; 17 return 32;
17 case RGBA_4444: 18 case RGBA_4444:
18 case RGB_565: 19 case RGB_565:
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 case ETC1: 135 case ETC1:
135 case RED_8: 136 case RED_8:
136 case LUMINANCE_F16: 137 case LUMINANCE_F16:
137 return false; 138 return false;
138 } 139 }
139 NOTREACHED(); 140 NOTREACHED();
140 return false; 141 return false;
141 } 142 }
142 143
143 } // namespace cc 144 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/resource_format.h ('k') | cc/test/ordered_texture_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698