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

Side by Side Diff: src/gpu/GrGpu.h

Issue 1734043002: Revert of Move Budgeted enum out of SkSurface, use in GrTextureProvider (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/GrContext.cpp ('k') | src/gpu/GrGpu.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 * palette data for paletted textures. For compressed 86 * palette data for paletted textures. For compressed
87 * formats it contains the compressed pixel data. Otherwi se, 87 * formats it contains the compressed pixel data. Otherwi se,
88 * it contains width*height texels. If nullptr texture da ta 88 * it contains width*height texels. If nullptr texture da ta
89 * is uninitialized. 89 * is uninitialized.
90 * @param rowBytes the number of bytes between consecutive rows. Zero 90 * @param rowBytes the number of bytes between consecutive rows. Zero
91 * means rows are tightly packed. This field is ignored 91 * means rows are tightly packed. This field is ignored
92 * for compressed formats. 92 * for compressed formats.
93 * 93 *
94 * @return The texture object if successful, otherwise nullptr. 94 * @return The texture object if successful, otherwise nullptr.
95 */ 95 */
96 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, 96 GrTexture* createTexture(const GrSurfaceDesc& desc, bool budgeted,
97 const void* srcData, size_t rowBytes); 97 const void* srcData, size_t rowBytes);
98 98
99 /** 99 /**
100 * Implements GrTextureProvider::wrapBackendTexture 100 * Implements GrTextureProvider::wrapBackendTexture
101 */ 101 */
102 GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); 102 GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership);
103 103
104 /** 104 /**
105 * Implements GrTextureProvider::wrapBackendTexture 105 * Implements GrTextureProvider::wrapBackendTexture
106 */ 106 */
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 ResetTimestamp fResetTi mestamp; 582 ResetTimestamp fResetTi mestamp;
583 uint32_t fResetBi ts; 583 uint32_t fResetBi ts;
584 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 584 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
585 GrContext* fContext ; 585 GrContext* fContext ;
586 586
587 friend class GrPathRendering; 587 friend class GrPathRendering;
588 typedef SkRefCnt INHERITED; 588 typedef SkRefCnt INHERITED;
589 }; 589 };
590 590
591 #endif 591 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698