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

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

Issue 1040303002: Use texture barriers to read directly from the RT (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Patch Set: fix windows build Created 5 years, 7 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/GrXferProcessor.cpp ('k') | src/gpu/gl/GrGLGpu.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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool copySurface(GrSurface* dst, 98 bool copySurface(GrSurface* dst,
99 GrSurface* src, 99 GrSurface* src,
100 const SkIRect& srcRect, 100 const SkIRect& srcRect,
101 const SkIPoint& dstPoint) override; 101 const SkIPoint& dstPoint) override;
102 102
103 bool canCopySurface(const GrSurface* dst, 103 bool canCopySurface(const GrSurface* dst,
104 const GrSurface* src, 104 const GrSurface* src,
105 const SkIRect& srcRect, 105 const SkIRect& srcRect,
106 const SkIPoint& dstPoint) override; 106 const SkIPoint& dstPoint) override;
107 107
108 void xferBarrier(GrXferBarrierType) override;
109
108 void buildProgramDesc(GrProgramDesc*, 110 void buildProgramDesc(GrProgramDesc*,
109 const GrPrimitiveProcessor&, 111 const GrPrimitiveProcessor&,
110 const GrPipeline&, 112 const GrPipeline&,
111 const GrBatchTracker&) const override; 113 const GrBatchTracker&) const override;
112 114
113 private: 115 private:
114 // GrGpu overrides 116 // GrGpu overrides
115 void onResetContext(uint32_t resetBits) override; 117 void onResetContext(uint32_t resetBits) override;
116 118
117 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 119 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 467
466 // we record what stencil format worked last time to hopefully exit early 468 // we record what stencil format worked last time to hopefully exit early
467 // from our loop that tries stencil formats and calls check fb status. 469 // from our loop that tries stencil formats and calls check fb status.
468 int fLastSuccessfulStencilFmtIdx; 470 int fLastSuccessfulStencilFmtIdx;
469 471
470 typedef GrGpu INHERITED; 472 typedef GrGpu INHERITED;
471 friend class GrGLPathRendering; // For accessing setTextureUnit. 473 friend class GrGLPathRendering; // For accessing setTextureUnit.
472 }; 474 };
473 475
474 #endif 476 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrXferProcessor.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698