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

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: Rebase 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
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrSurface.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 #ifndef GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 * @return true if the write succeeded, false if not. The write can fail bec ause of an 286 * @return true if the write succeeded, false if not. The write can fail bec ause of an
287 * unsupported combination of surface and src configs. 287 * unsupported combination of surface and src configs.
288 */ 288 */
289 bool writeSurfacePixels(GrSurface* surface, 289 bool writeSurfacePixels(GrSurface* surface,
290 int left, int top, int width, int height, 290 int left, int top, int width, int height,
291 GrPixelConfig config, const void* buffer, 291 GrPixelConfig config, const void* buffer,
292 size_t rowBytes, 292 size_t rowBytes,
293 uint32_t pixelOpsFlags = 0); 293 uint32_t pixelOpsFlags = 0);
294 294
295 /** 295 /**
296 * Copies contents of src to dst, while applying a gamma curve. Fails if the two surfaces
297 * are not identically sized.
298 * @param dst the surface to copy to.
299 * @param src the texture to copy from.
300 * @param gamma the gamma value to apply.
301 */
302 bool applyGamma(GrRenderTarget* dst, GrTexture* src, SkScalar gamma);
303
304 /**
296 * Copies a rectangle of texels from src to dst. 305 * Copies a rectangle of texels from src to dst.
297 * bounds.
298 * @param dst the surface to copy to. 306 * @param dst the surface to copy to.
299 * @param src the surface to copy from. 307 * @param src the surface to copy from.
300 * @param srcRect the rectangle of the src that should be copied. 308 * @param srcRect the rectangle of the src that should be copied.
301 * @param dstPoint the translation applied when writing the srcRect's p ixels to the dst. 309 * @param dstPoint the translation applied when writing the srcRect's p ixels to the dst.
302 */ 310 */
303 bool copySurface(GrSurface* dst, 311 bool copySurface(GrSurface* dst,
304 GrSurface* src, 312 GrSurface* src,
305 const SkIRect& srcRect, 313 const SkIRect& srcRect,
306 const SkIPoint& dstPoint); 314 const SkIPoint& dstPoint);
307 315
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 SkAutoTUnref<const GrCaps> fCaps; 496 SkAutoTUnref<const GrCaps> fCaps;
489 uint32_t fContextUniqueID; 497 uint32_t fContextUniqueID;
490 498
491 friend class GrContext; 499 friend class GrContext;
492 friend class SkImage; 500 friend class SkImage;
493 501
494 typedef SkRefCnt INHERITED; 502 typedef SkRefCnt INHERITED;
495 }; 503 };
496 504
497 #endif 505 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698