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

Unified 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, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrGpu.h » ('j') | src/gpu/GrGpu.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTypesPriv.h
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h
index 6135c14c12198232b67e41dbc7ea63545a278634..3d45c173ece2c2504e35d2307f01bc33ce63b77b 100644
--- a/include/gpu/GrTypesPriv.h
+++ b/include/gpu/GrTypesPriv.h
@@ -267,6 +267,17 @@ private:
SkIRect fRect;
};
+/**
+* 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.
+*/
+enum TransferType {
+ /** Caller intends to use the buffer to transfer data to the GPU */
+ kCpuToGpu_TransferType,
+ /** Caller intends to use the buffer to transfer data from the GPU */
+ kGpuToCpu_TransferType
+};
+
+
#ifdef SK_DEBUG
// Takes a pointer to a GrCaps, and will suppress prints if required
#define GrCapsDebugf(caps, ...) \
« 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