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

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

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More cleanup Created 4 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
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 #ifndef GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 * @return true if the write succeeded, false if not. The write can fail bec ause of an 291 * @return true if the write succeeded, false if not. The write can fail bec ause of an
292 * unsupported combination of surface and src configs. 292 * unsupported combination of surface and src configs.
293 */ 293 */
294 bool writeSurfacePixels(GrSurface* surface, 294 bool writeSurfacePixels(GrSurface* surface,
295 int left, int top, int width, int height, 295 int left, int top, int width, int height,
296 GrPixelConfig config, const void* buffer, 296 GrPixelConfig config, const void* buffer,
297 size_t rowBytes, 297 size_t rowBytes,
298 uint32_t pixelOpsFlags = 0); 298 uint32_t pixelOpsFlags = 0);
299 299
300 /** 300 /**
301 * Writes the texture to the render target, while applying a gamma curve.
302 */
bsalomon 2016/04/29 18:27:20 Question about this API: Can dst and src be diffe
Brian Osman 2016/05/02 21:02:45 I started trying to support different sizes, but t
bsalomon 2016/05/02 21:17:40 sgtm
303 bool applyGamma(GrRenderTarget* dst, GrTexture* src, SkScalar gamma);
304
305 /**
301 * Copies a rectangle of texels from src to dst. 306 * Copies a rectangle of texels from src to dst.
302 * bounds. 307 * bounds.
303 * @param dst the surface to copy to. 308 * @param dst the surface to copy to.
304 * @param src the surface to copy from. 309 * @param src the surface to copy from.
305 * @param srcRect the rectangle of the src that should be copied. 310 * @param srcRect the rectangle of the src that should be copied.
306 * @param dstPoint the translation applied when writing the srcRect's p ixels to the dst. 311 * @param dstPoint the translation applied when writing the srcRect's p ixels to the dst.
307 */ 312 */
308 bool copySurface(GrSurface* dst, 313 bool copySurface(GrSurface* dst,
309 GrSurface* src, 314 GrSurface* src,
310 const SkIRect& srcRect, 315 const SkIRect& srcRect,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 SkAutoTUnref<const GrCaps> fCaps; 498 SkAutoTUnref<const GrCaps> fCaps;
494 uint32_t fContextUniqueID; 499 uint32_t fContextUniqueID;
495 500
496 friend class GrContext; 501 friend class GrContext;
497 friend class SkImage; 502 friend class SkImage;
498 503
499 typedef SkRefCnt INHERITED; 504 typedef SkRefCnt INHERITED;
500 }; 505 };
501 506
502 #endif 507 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrSurface.h » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698