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

Side by Side Diff: include/gpu/GrSurface.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 | « include/gpu/GrContext.h ('k') | include/views/SkOSWindow_Android.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrSurface_DEFINED 9 #ifndef GrSurface_DEFINED
10 #define GrSurface_DEFINED 10 #define GrSurface_DEFINED
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * @param left left edge of the rectangle to write (inclusive) 93 * @param left left edge of the rectangle to write (inclusive)
94 * @param top top edge of the rectangle to write (inclusive) 94 * @param top top edge of the rectangle to write (inclusive)
95 * @param width width of rectangle to write in pixels. 95 * @param width width of rectangle to write in pixels.
96 * @param height height of rectangle to write in pixels. 96 * @param height height of rectangle to write in pixels.
97 * @param config the pixel config of the source buffer 97 * @param config the pixel config of the source buffer
98 * @param buffer memory to read the rectangle from. 98 * @param buffer memory to read the rectangle from.
99 * @param rowBytes number of bytes between consecutive rows. Zero means rows are tightly 99 * @param rowBytes number of bytes between consecutive rows. Zero means rows are tightly
100 * packed. 100 * packed.
101 * @param pixelOpsFlags See the GrContext::PixelOpsFlags enum. 101 * @param pixelOpsFlags See the GrContext::PixelOpsFlags enum.
102 * 102 *
103 * @return true if the read succeeded, false if not. The read can fail becau se of an 103 * @return true if the write succeeded, false if not. The write can fail bec ause of an
104 * unsupported pixel config. 104 * unsupported pixel config.
105 */ 105 */
106 bool writePixels(int left, int top, int width, int height, 106 bool writePixels(int left, int top, int width, int height,
107 GrPixelConfig config, 107 GrPixelConfig config,
108 const void* buffer, 108 const void* buffer,
109 size_t rowBytes = 0, 109 size_t rowBytes = 0,
110 uint32_t pixelOpsFlags = 0); 110 uint32_t pixelOpsFlags = 0);
111 111
112 /** 112 /**
113 * After this returns any pending writes to the surface will be issued to th e backend 3D API. 113 * After this returns any pending writes to the surface will be issued to th e backend 3D API.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 } 172 }
173 173
174 ReleaseProc fReleaseProc; 174 ReleaseProc fReleaseProc;
175 ReleaseCtx fReleaseCtx; 175 ReleaseCtx fReleaseCtx;
176 176
177 typedef GrGpuResource INHERITED; 177 typedef GrGpuResource INHERITED;
178 }; 178 };
179 179
180 #endif 180 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | include/views/SkOSWindow_Android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698