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

Side by Side Diff: src/gpu/gl/GrGLTextureRenderTarget.h

Issue 808593003: Rename GrGpuGL to GrGLGpu for consistency (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years 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 | « src/gpu/gl/GrGLTexture.cpp ('k') | src/gpu/gl/GrGLVertexArray.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 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 8
9 #ifndef GrGLTextureRenderTarget_DEFINED 9 #ifndef GrGLTextureRenderTarget_DEFINED
10 #define GrGLTextureRenderTarget_DEFINED 10 #define GrGLTextureRenderTarget_DEFINED
11 11
12 #include "GrGLTexture.h" 12 #include "GrGLTexture.h"
13 #include "GrGLRenderTarget.h" 13 #include "GrGLRenderTarget.h"
14 14
15 class GrGpuGL; 15 class GrGLGpu;
16 16
17 #ifdef SK_BUILD_FOR_WIN 17 #ifdef SK_BUILD_FOR_WIN
18 // Windows gives bogus warnings about inheriting asTexture/asRenderTarget via do minance. 18 // Windows gives bogus warnings about inheriting asTexture/asRenderTarget via do minance.
19 #pragma warning(push) 19 #pragma warning(push)
20 #pragma warning(disable: 4250) 20 #pragma warning(disable: 4250)
21 #endif 21 #endif
22 22
23 class GrGLTextureRenderTarget : public GrGLTexture, public GrGLRenderTarget { 23 class GrGLTextureRenderTarget : public GrGLTexture, public GrGLRenderTarget {
24 public: 24 public:
25 // We're virtually derived from GrSurface (via both GrGLTexture and GrGLRend erTarget) so its 25 // We're virtually derived from GrSurface (via both GrGLTexture and GrGLRend erTarget) so its
26 // constructor must be explicitly called. 26 // constructor must be explicitly called.
27 GrGLTextureRenderTarget(GrGpuGL* gpu, 27 GrGLTextureRenderTarget(GrGLGpu* gpu,
28 const GrSurfaceDesc& desc, 28 const GrSurfaceDesc& desc,
29 const GrGLTexture::IDDesc& texIDDesc, 29 const GrGLTexture::IDDesc& texIDDesc,
30 const GrGLRenderTarget::IDDesc& rtIDDesc) 30 const GrGLRenderTarget::IDDesc& rtIDDesc)
31 : GrSurface(gpu, texIDDesc.fIsWrapped, desc) 31 : GrSurface(gpu, texIDDesc.fIsWrapped, desc)
32 , GrGLTexture(gpu, desc, texIDDesc, GrGLTexture::kDerived) 32 , GrGLTexture(gpu, desc, texIDDesc, GrGLTexture::kDerived)
33 , GrGLRenderTarget(gpu, desc, rtIDDesc, GrGLRenderTarget::kDerived) { 33 , GrGLRenderTarget(gpu, desc, rtIDDesc, GrGLRenderTarget::kDerived) {
34 this->registerWithCache(); 34 this->registerWithCache();
35 } 35 }
36 36
37 protected: 37 protected:
(...skipping 13 matching lines...) Expand all
51 return GrGLRenderTarget::onGpuMemorySize(); 51 return GrGLRenderTarget::onGpuMemorySize();
52 } 52 }
53 53
54 }; 54 };
55 55
56 #ifdef SK_BUILD_FOR_WIN 56 #ifdef SK_BUILD_FOR_WIN
57 #pragma warning(pop) 57 #pragma warning(pop)
58 #endif 58 #endif
59 59
60 #endif 60 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTexture.cpp ('k') | src/gpu/gl/GrGLVertexArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698