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

Side by Side Diff: include/gpu/SkGr.h

Issue 1121813002: new image from backend desc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: set samplecount to 0 (for now) Created 5 years, 7 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 | « include/core/SkImage.h ('k') | src/gpu/SkGpuDevice.cpp » ('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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // bool and use the invariant info to automatically apply the color filter. 83 // bool and use the invariant info to automatically apply the color filter.
84 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, 84 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint,
85 GrColor paintColor, bool constantColor, GrPaint* gr Paint); 85 GrColor paintColor, bool constantColor, GrPaint* gr Paint);
86 86
87 // This function is similar to skPaint2GrPaintNoShader but also converts 87 // This function is similar to skPaint2GrPaintNoShader but also converts
88 // skPaint's shader to a GrFragmentProcessor if possible. 88 // skPaint's shader to a GrFragmentProcessor if possible.
89 // constantColor has the same meaning as in skPaint2GrPaintNoShader. 89 // constantColor has the same meaning as in skPaint2GrPaintNoShader.
90 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint , 90 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint ,
91 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint ); 91 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint );
92 92
93
94 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque);
95
96 // Using the dreaded SkGrPixelRef ...
97 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap * dst);
98
93 //////////////////////////////////////////////////////////////////////////////// 99 ////////////////////////////////////////////////////////////////////////////////
94 // Classes 100 // Classes
95 101
96 class SkGlyphCache; 102 class SkGlyphCache;
97 103
98 //////////////////////////////////////////////////////////////////////////////// 104 ////////////////////////////////////////////////////////////////////////////////
99 105
100 #endif 106 #endif
OLDNEW
« no previous file with comments | « include/core/SkImage.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698