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/GrGLGpu.h

Issue 1429863009: Use a struct for client GL texture handles (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 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 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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // the texture is already in GPU memory and that it's going to be updated 297 // the texture is already in GPU memory and that it's going to be updated
298 // with new data. 298 // with new data.
299 bool uploadCompressedTexData(const GrSurfaceDesc& desc, 299 bool uploadCompressedTexData(const GrSurfaceDesc& desc,
300 GrGLenum target, 300 GrGLenum target,
301 const void* data, 301 const void* data,
302 bool isNewTexture = true, 302 bool isNewTexture = true,
303 int left = 0, int top = 0, 303 int left = 0, int top = 0,
304 int width = -1, int height = -1); 304 int width = -1, int height = -1);
305 305
306 bool createRenderTargetObjects(const GrSurfaceDesc&, GrGpuResource::LifeCycl e lifeCycle, 306 bool createRenderTargetObjects(const GrSurfaceDesc&, GrGpuResource::LifeCycl e lifeCycle,
307 GrGLenum textureTarget, GrGLuint texID, 307 const GrGLTextureInfo& texInfo, GrGLRenderTar get::IDDesc*);
308 GrGLRenderTarget::IDDesc*);
309 308
310 enum TempFBOTarget { 309 enum TempFBOTarget {
311 kSrc_TempFBOTarget, 310 kSrc_TempFBOTarget,
312 kDst_TempFBOTarget 311 kDst_TempFBOTarget
313 }; 312 };
314 313
315 // Binds a surface as a FBO for a copy operation. If the surface already own s an FBO ID then 314 // Binds a surface as a FBO for a copy operation. If the surface already own s an FBO ID then
316 // that ID is bound. If not the surface is temporarily bound to a FBO and th at FBO is bound. 315 // that ID is bound. If not the surface is temporarily bound to a FBO and th at FBO is bound.
317 // This must be paired with a call to unbindSurfaceFBOForCopy(). 316 // This must be paired with a call to unbindSurfaceFBOForCopy().
318 void bindSurfaceFBOForCopy(GrSurface* surface, GrGLenum fboTarget, GrGLIRect * viewport, 317 void bindSurfaceFBOForCopy(GrSurface* surface, GrGLenum fboTarget, GrGLIRect * viewport,
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 516
518 // Mapping of pixel configs to known supported stencil formats to be used 517 // Mapping of pixel configs to known supported stencil formats to be used
519 // when adding a stencil buffer to a framebuffer. 518 // when adding a stencil buffer to a framebuffer.
520 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; 519 int fPixelConfigToStencilIndex[kGrPixelConfigCnt];
521 520
522 typedef GrGpu INHERITED; 521 typedef GrGpu INHERITED;
523 friend class GrGLPathRendering; // For accessing setTextureUnit. 522 friend class GrGLPathRendering; // For accessing setTextureUnit.
524 }; 523 };
525 524
526 #endif 525 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698