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

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

Issue 1149553002: SkImage::NewFromYUVTexturesCopy (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix warnings Created 5 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/effects/GrYUVtoRGBEffect.cpp ('k') | src/image/SkImage_Gpu.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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const SkIRect& srcRect, 107 const SkIRect& srcRect,
108 const SkIPoint& dstPoint) override; 108 const SkIPoint& dstPoint) override;
109 109
110 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; 110 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override;
111 111
112 void buildProgramDesc(GrProgramDesc*, 112 void buildProgramDesc(GrProgramDesc*,
113 const GrPrimitiveProcessor&, 113 const GrPrimitiveProcessor&,
114 const GrPipeline&, 114 const GrPipeline&,
115 const GrBatchTracker&) const override; 115 const GrBatchTracker&) const override;
116 116
117 virtual const GrGLInterface* glInterfaceForTesting() const {
118 return this->glInterface();
119 }
120
117 private: 121 private:
118 GrGLGpu(GrGLContext* ctx, GrContext* context); 122 GrGLGpu(GrGLContext* ctx, GrContext* context);
119 123
120 // GrGpu overrides 124 // GrGpu overrides
121 void onResetContext(uint32_t resetBits) override; 125 void onResetContext(uint32_t resetBits) override;
122 126
123 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 127 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
124 const void* srcData, size_t rowBytes) override; 128 const void* srcData, size_t rowBytes) override;
125 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, 129 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc,
126 GrGpuResource::LifeCycle lifeCycle, 130 GrGpuResource::LifeCycle lifeCycle,
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 477
474 // we record what stencil format worked last time to hopefully exit early 478 // we record what stencil format worked last time to hopefully exit early
475 // from our loop that tries stencil formats and calls check fb status. 479 // from our loop that tries stencil formats and calls check fb status.
476 int fLastSuccessfulStencilFmtIdx; 480 int fLastSuccessfulStencilFmtIdx;
477 481
478 typedef GrGpu INHERITED; 482 typedef GrGpu INHERITED;
479 friend class GrGLPathRendering; // For accessing setTextureUnit. 483 friend class GrGLPathRendering; // For accessing setTextureUnit.
480 }; 484 };
481 485
482 #endif 486 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrYUVtoRGBEffect.cpp ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698