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

Side by Side Diff: include/gpu/gl/GrGLTypes.h

Issue 1429863009: Use a struct for client GL texture handles (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 1 month 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/skia_for_chromium_defines.gypi ('k') | src/gpu/gl/GrGLGpu.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 /* 2 /*
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrGLTypes_DEFINED 9 #ifndef GrGLTypes_DEFINED
10 #define GrGLTypes_DEFINED 10 #define GrGLTypes_DEFINED
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 typedef signed long long int GrGLsizeiptr; 51 typedef signed long long int GrGLsizeiptr;
52 #else 52 #else
53 typedef signed long int GrGLintptr; 53 typedef signed long int GrGLintptr;
54 typedef signed long int GrGLsizeiptr; 54 typedef signed long int GrGLsizeiptr;
55 #endif 55 #endif
56 #else 56 #else
57 typedef signed long int GrGLintptr; 57 typedef signed long int GrGLintptr;
58 typedef signed long int GrGLsizeiptr; 58 typedef signed long int GrGLsizeiptr;
59 #endif 59 #endif
60 60
61 ///////////////////////////////////////////////////////////////////////////////
62 /**
63 * Types for interacting with GL resources created externally to Skia. GrBackend Objects for GL
64 * textures are really const GrGLTexture*
65 */
66
67 struct GrGLTextureInfo {
egdaniel 2015/11/10 19:53:47 Can we rename this GrGLTextureStuff?
68 GrGLenum fTarget;
69 GrGLuint fID;
70 };
71
72 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*));
73
61 #endif 74 #endif
OLDNEW
« no previous file with comments | « gyp/skia_for_chromium_defines.gypi ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698