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

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

Issue 2020993004: Implement TransferableResource StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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/ipc/typemaps.gni ('k') | cc/resources/resource_format.h » ('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/playback/raster_source.h" 10 #include "cc/playback/raster_source.h"
11 #include "cc/raster/texture_compressor.h" 11 #include "cc/raster/texture_compressor.h"
12 #include "cc/resources/platform_color.h" 12 #include "cc/resources/platform_color.h"
13 #include "cc/resources/resource_format_utils.h"
13 #include "third_party/skia/include/core/SkCanvas.h" 14 #include "third_party/skia/include/core/SkCanvas.h"
14 #include "third_party/skia/include/core/SkSurface.h" 15 #include "third_party/skia/include/core/SkSurface.h"
15 16
16 namespace cc { 17 namespace cc {
17 18
18 RasterBufferProvider::RasterBufferProvider() {} 19 RasterBufferProvider::RasterBufferProvider() {}
19 20
20 RasterBufferProvider::~RasterBufferProvider() {} 21 RasterBufferProvider::~RasterBufferProvider() {}
21 22
22 namespace { 23 namespace {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 case RGB_565: 143 case RGB_565:
143 case RED_8: 144 case RED_8:
144 case LUMINANCE_F16: 145 case LUMINANCE_F16:
145 return false; 146 return false;
146 } 147 }
147 NOTREACHED(); 148 NOTREACHED();
148 return false; 149 return false;
149 } 150 }
150 151
151 } // namespace cc 152 } // namespace cc
OLDNEW
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/resources/resource_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698