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

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

Issue 1534123003: More framework support for TransferBuffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 11 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 | « no previous file | src/gpu/GrGpu.h » ('j') | src/gpu/GrGpu.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 GrTypesPriv_DEFINED 8 #ifndef GrTypesPriv_DEFINED
9 #define GrTypesPriv_DEFINED 9 #define GrTypesPriv_DEFINED
10 10
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 bool operator!=(const GrScissorState& other) const { return !(*this == other ); } 260 bool operator!=(const GrScissorState& other) const { return !(*this == other ); }
261 261
262 bool enabled() const { return fEnabled; } 262 bool enabled() const { return fEnabled; }
263 const SkIRect& rect() const { return fRect; } 263 const SkIRect& rect() const { return fRect; }
264 264
265 private: 265 private:
266 bool fEnabled; 266 bool fEnabled;
267 SkIRect fRect; 267 SkIRect fRect;
268 }; 268 };
269 269
270 /**
271 * Indicates the transfer direction for a transfer buffer
bsalomon 2016/01/05 14:01:17 nit the single *s should be one space out to align
jvanverth1 2016/01/05 17:21:28 Done.
272 */
273 enum TransferType {
274 /** Caller intends to use the buffer to transfer data to the GPU */
275 kCpuToGpu_TransferType,
276 /** Caller intends to use the buffer to transfer data from the GPU */
277 kGpuToCpu_TransferType
278 };
279
280
270 #ifdef SK_DEBUG 281 #ifdef SK_DEBUG
271 // Takes a pointer to a GrCaps, and will suppress prints if required 282 // Takes a pointer to a GrCaps, and will suppress prints if required
272 #define GrCapsDebugf(caps, ...) \ 283 #define GrCapsDebugf(caps, ...) \
273 if (!caps->suppressPrints()) { \ 284 if (!caps->suppressPrints()) { \
274 SkDebugf(__VA_ARGS__); \ 285 SkDebugf(__VA_ARGS__); \
275 } 286 }
276 #else 287 #else
277 #define GrCapsDebugf(caps, ...) 288 #define GrCapsDebugf(caps, ...)
278 #endif 289 #endif
279 290
280 #endif 291 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrGpu.h » ('j') | src/gpu/GrGpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698