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

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

Issue 695813003: Add class GrGLTextureRenderTarget for GL texture/rendertarget objects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: forgot to save file Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 GrGpuResource_DEFINED 8 #ifndef GrGpuResource_DEFINED
9 #define GrGpuResource_DEFINED 9 #define GrGpuResource_DEFINED
10 10
11 #include "GrResourceKey.h" 11 #include "GrResourceKey.h"
12 #include "GrTypesPriv.h" 12 #include "GrTypesPriv.h"
13 #include "SkInstCnt.h" 13 #include "SkInstCnt.h"
14 #include "SkTInternalLList.h" 14 #include "SkTInternalLList.h"
15 15
16 class GrContext;
17 class GrGpu;
18 class GrResourceCache2;
16 class GrResourceCacheEntry; 19 class GrResourceCacheEntry;
17 class GrResourceCache2;
18 class GrGpu;
19 class GrContext;
20 20
21 /** 21 /**
22 * Base class for GrGpuResource. Handles the various types of refs we need. Sepa rated out as a base 22 * Base class for GrGpuResource. Handles the various types of refs we need. Sepa rated out as a base
23 * class to isolate the ref-cnting behavior and provide friendship without expos ing all of 23 * class to isolate the ref-cnting behavior and provide friendship without expos ing all of
24 * GrGpuResource. 24 * GrGpuResource.
25 * 25 *
26 * Gpu resources can have three types of refs: 26 * Gpu resources can have three types of refs:
27 * 1) Normal ref (+ by ref(), - by unref()): These are used by code that is is suing draw calls 27 * 1) Normal ref (+ by ref(), - by unref()): These are used by code that is is suing draw calls
28 * that read and write the resource via GrDrawTarget and by any object that must own a 28 * that read and write the resource via GrDrawTarget and by any object that must own a
29 * GrGpuResource and is itself owned (directly or indirectly) by Skia-clien t code. 29 * GrGpuResource and is itself owned (directly or indirectly) by Skia-clien t code.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 GrResourceCacheEntry* fCacheEntry; // NULL if not in cache 258 GrResourceCacheEntry* fCacheEntry; // NULL if not in cache
259 const uint32_t fUniqueID; 259 const uint32_t fUniqueID;
260 260
261 GrResourceKey fScratchKey; 261 GrResourceKey fScratchKey;
262 262
263 typedef GrIORef<GrGpuResource> INHERITED; 263 typedef GrIORef<GrGpuResource> INHERITED;
264 friend class GrIORef<GrGpuResource>; // to access notifyIsPurgable. 264 friend class GrIORef<GrGpuResource>; // to access notifyIsPurgable.
265 }; 265 };
266 266
267 #endif 267 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrGpuResourceRef.h » ('j') | include/gpu/GrRenderTarget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698