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

Side by Side Diff: src/gpu/SkGr.cpp

Issue 1513393002: Add ability to extract YUV planes from SkImage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gm cleanup Created 4 years, 10 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 | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/effects/GrYUVEffect.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 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "SkGr.h" 9 #include "SkGr.h"
10 10
(...skipping 14 matching lines...) Expand all
25 #include "SkMessageBus.h" 25 #include "SkMessageBus.h"
26 #include "SkPixelRef.h" 26 #include "SkPixelRef.h"
27 #include "SkResourceCache.h" 27 #include "SkResourceCache.h"
28 #include "SkTextureCompressor.h" 28 #include "SkTextureCompressor.h"
29 #include "SkYUVPlanesCache.h" 29 #include "SkYUVPlanesCache.h"
30 #include "effects/GrBicubicEffect.h" 30 #include "effects/GrBicubicEffect.h"
31 #include "effects/GrConstColorProcessor.h" 31 #include "effects/GrConstColorProcessor.h"
32 #include "effects/GrDitherEffect.h" 32 #include "effects/GrDitherEffect.h"
33 #include "effects/GrPorterDuffXferProcessor.h" 33 #include "effects/GrPorterDuffXferProcessor.h"
34 #include "effects/GrXfermodeFragmentProcessor.h" 34 #include "effects/GrXfermodeFragmentProcessor.h"
35 #include "effects/GrYUVtoRGBEffect.h" 35 #include "effects/GrYUVEffect.h"
36 36
37 #ifndef SK_IGNORE_ETC1_SUPPORT 37 #ifndef SK_IGNORE_ETC1_SUPPORT
38 # include "ktx.h" 38 # include "ktx.h"
39 # include "etc1.h" 39 # include "etc1.h"
40 #endif 40 #endif
41 41
42 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo& info) { 42 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo& info) {
43 GrSurfaceDesc desc; 43 GrSurfaceDesc desc;
44 desc.fFlags = kNone_GrSurfaceFlags; 44 desc.fFlags = kNone_GrSurfaceFlags;
45 desc.fWidth = info.width(); 45 desc.fWidth = info.width();
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 SkErrorInternals::SetError( kInvalidPaint_SkError, 627 SkErrorInternals::SetError( kInvalidPaint_SkError,
628 "Sorry, I don't understand the filtering " 628 "Sorry, I don't understand the filtering "
629 "mode you asked for. Falling back to " 629 "mode you asked for. Falling back to "
630 "MIPMaps."); 630 "MIPMaps.");
631 textureFilterMode = GrTextureParams::kMipMap_FilterMode; 631 textureFilterMode = GrTextureParams::kMipMap_FilterMode;
632 break; 632 break;
633 633
634 } 634 }
635 return textureFilterMode; 635 return textureFilterMode;
636 } 636 }
OLDNEW
« no previous file with comments | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/effects/GrYUVEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698