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

Side by Side Diff: src/image/SkImage_Gpu.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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 | « src/gpu/glsl/GrGLSLCaps.h ('k') | src/image/SkSurface_Gpu.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 2015 Google Inc. 2 * Copyright 2015 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 SkImage_Gpu_DEFINED 8 #ifndef SkImage_Gpu_DEFINED
9 #define SkImage_Gpu_DEFINED 9 #define SkImage_Gpu_DEFINED
10 10
11 #include "GrTexture.h" 11 #include "GrTexture.h"
12 #include "GrGpuResourcePriv.h" 12 #include "GrGpuResourcePriv.h"
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkImage_Base.h" 14 #include "SkImage_Base.h"
15 #include "SkImagePriv.h" 15 #include "SkImagePriv.h"
16 #include "SkSurface.h" 16 #include "SkSurface.h"
17 17
18 class SkImage_Gpu : public SkImage_Base { 18 class SkImage_Gpu : public SkImage_Base {
19 public: 19 public:
20 SK_DECLARE_INST_COUNT(SkImage_Gpu) 20
21 21
22 /** 22 /**
23 * An "image" can be a subset/window into a larger texture, so we explicit take the 23 * An "image" can be a subset/window into a larger texture, so we explicit take the
24 * width and height. 24 * width and height.
25 */ 25 */
26 SkImage_Gpu(int w, int h, SkAlphaType, GrTexture*, int sampleCountForNewSurf aces, 26 SkImage_Gpu(int w, int h, SkAlphaType, GrTexture*, int sampleCountForNewSurf aces,
27 SkSurface::Budgeted); 27 SkSurface::Budgeted);
28 28
29 void applyBudgetDecision() const { 29 void applyBudgetDecision() const {
30 GrTexture* tex = this->getTexture(); 30 GrTexture* tex = this->getTexture();
(...skipping 18 matching lines...) Expand all
49 private: 49 private:
50 SkAutoTUnref<GrTexture> fTexture; 50 SkAutoTUnref<GrTexture> fTexture;
51 const int fSampleCountForNewSurfaces; // 0 if we don't know 51 const int fSampleCountForNewSurfaces; // 0 if we don't know
52 const SkAlphaType fAlphaType; 52 const SkAlphaType fAlphaType;
53 SkSurface::Budgeted fBudgeted; 53 SkSurface::Budgeted fBudgeted;
54 54
55 typedef SkImage_Base INHERITED; 55 typedef SkImage_Base INHERITED;
56 }; 56 };
57 57
58 #endif 58 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLCaps.h ('k') | src/image/SkSurface_Gpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698