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

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

Issue 303273008: Revert of Initial work to get ETC1 data up to the GPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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/SkGr.cpp ('k') | src/gpu/gl/GrGpuGL.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 GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const SkIRect& srcRect, 117 const SkIRect& srcRect,
118 const SkIPoint& dstPoint) SK_OVERRIDE; 118 const SkIPoint& dstPoint) SK_OVERRIDE;
119 119
120 private: 120 private:
121 // GrGpu overrides 121 // GrGpu overrides
122 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; 122 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE;
123 123
124 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, 124 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc,
125 const void* srcData, 125 const void* srcData,
126 size_t rowBytes) SK_OVERRIDE; 126 size_t rowBytes) SK_OVERRIDE;
127 virtual GrTexture* onCreateCompressedTexture(const GrTextureDesc& desc,
128 const void* srcData) SK_OVERRID E;
129 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_O VERRIDE; 127 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_O VERRIDE;
130 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE RRIDE; 128 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE RRIDE;
131 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; 129 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE;
132 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE; 130 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE;
133 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE; 131 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE;
134 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, 132 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt,
135 int width, 133 int width,
136 int height) SK_OVERRIDE; 134 int height) SK_OVERRIDE;
137 virtual bool attachStencilBufferToRenderTarget( 135 virtual bool attachStencilBufferToRenderTarget(
138 GrStencilBuffer* sb, 136 GrStencilBuffer* sb,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 GrGLenum* externalFormat, 258 GrGLenum* externalFormat,
261 GrGLenum* externalType); 259 GrGLenum* externalType);
262 // helper for onCreateTexture and writeTexturePixels 260 // helper for onCreateTexture and writeTexturePixels
263 bool uploadTexData(const GrGLTexture::Desc& desc, 261 bool uploadTexData(const GrGLTexture::Desc& desc,
264 bool isNewTexture, 262 bool isNewTexture,
265 int left, int top, int width, int height, 263 int left, int top, int width, int height,
266 GrPixelConfig dataConfig, 264 GrPixelConfig dataConfig,
267 const void* data, 265 const void* data,
268 size_t rowBytes); 266 size_t rowBytes);
269 267
270 // helper for onCreateCompressedTexture
271 bool uploadCompressedTexData(const GrGLTexture::Desc& desc,
272 const void* data);
273
274 bool createRenderTargetObjects(int width, int height, 268 bool createRenderTargetObjects(int width, int height,
275 GrGLuint texID, 269 GrGLuint texID,
276 GrGLRenderTarget::Desc* desc); 270 GrGLRenderTarget::Desc* desc);
277 271
278 GrGLContext fGLContext; 272 GrGLContext fGLContext;
279 273
280 // GL program-related state 274 // GL program-related state
281 ProgramCache* fProgramCache; 275 ProgramCache* fProgramCache;
282 SkAutoTUnref<GrGLProgram> fCurrentProgram; 276 SkAutoTUnref<GrGLProgram> fCurrentProgram;
283 277
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 ///@} 456 ///@}
463 457
464 // we record what stencil format worked last time to hopefully exit early 458 // we record what stencil format worked last time to hopefully exit early
465 // from our loop that tries stencil formats and calls check fb status. 459 // from our loop that tries stencil formats and calls check fb status.
466 int fLastSuccessfulStencilFmtIdx; 460 int fLastSuccessfulStencilFmtIdx;
467 461
468 typedef GrGpu INHERITED; 462 typedef GrGpu INHERITED;
469 }; 463 };
470 464
471 #endif 465 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698