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

Side by Side Diff: blimp/client/feature/compositor/decoding_image_generator.cc

Issue 1719533002: Modify YUV codecs to match Skia's API change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update DEPS again Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/client/feature/compositor/decoding_image_generator.h" 5 #include "blimp/client/feature/compositor/decoding_image_generator.h"
6 6
7 #include "blimp/common/compositor/webp_decoder.h" 7 #include "blimp/common/compositor/webp_decoder.h"
8 #include "third_party/libwebp/webp/decode.h" 8 #include "third_party/libwebp/webp/decode.h"
9 #include "third_party/libwebp/webp/demux.h" 9 #include "third_party/libwebp/webp/demux.h"
10 #include "third_party/skia/include/core/SkData.h" 10 #include "third_party/skia/include/core/SkData.h"
(...skipping 29 matching lines...) Expand all
40 SkPMColor table[], 40 SkPMColor table[],
41 int* tableCount) { 41 int* tableCount) {
42 SkAutoLockPixels bitmapLock(decoded_bitmap_); 42 SkAutoLockPixels bitmapLock(decoded_bitmap_);
43 if (decoded_bitmap_.getPixels() != pixels) { 43 if (decoded_bitmap_.getPixels() != pixels) {
44 return decoded_bitmap_.copyPixelsTo(pixels, rowBytes * info.height(), 44 return decoded_bitmap_.copyPixelsTo(pixels, rowBytes * info.height(),
45 rowBytes); 45 rowBytes);
46 } 46 }
47 return true; 47 return true;
48 } 48 }
49 49
50 bool DecodingImageGenerator::onGetYUV8Planes(SkISize sizes[3], 50 bool DecodingImageGenerator::onQueryYUV8(SkYUVSizeInfo* sizeInfo,
51 void* planes[3], 51 SkYUVColorSpace* colorSpace) const {
52 size_t rowBytes[3],
53 SkYUVColorSpace*) {
54 return false; 52 return false;
55 } 53 }
56 54
55 bool DecodingImageGenerator::onGetYUV8Planes(const SkYUVSizeInfo& sizeInfo,
56 void* planes[3]) {
57 return false;
58 }
59
57 } // namespace client 60 } // namespace client
58 } // namespace blimp 61 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/feature/compositor/decoding_image_generator.h ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698