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

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

Issue 2038583002: Add GpuCommandBuffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@secondaryCB
Patch Set: Created 4 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/GrGpuCommandBuffer.h ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Called by GrGLBuffer after its buffer object has been destroyed. 95 // Called by GrGLBuffer after its buffer object has been destroyed.
96 void notifyBufferReleased(const GrGLBuffer*); 96 void notifyBufferReleased(const GrGLBuffer*);
97 97
98 const GrGLContext* glContextForTesting() const override { 98 const GrGLContext* glContextForTesting() const override {
99 return &this->glContext(); 99 return &this->glContext();
100 } 100 }
101 101
102 void clearStencil(GrRenderTarget*) override; 102 void clearStencil(GrRenderTarget*) override;
103 103
104 GrGpuCommandBuffer* createCommandBuffer(const GrRenderTarget& target,
105 GrGpuCommandBuffer::LoadAndStoreOp c olorOp,
106 GrColor colorClear,
107 GrGpuCommandBuffer::LoadAndStoreOp s tencilOp,
108 GrColor stencilClear) override;
109
104 void invalidateBoundRenderTarget() { 110 void invalidateBoundRenderTarget() {
105 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; 111 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID;
106 } 112 }
107 113
108 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget* rt, 114 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget* rt,
109 int width, 115 int width,
110 int height) over ride; 116 int height) over ride;
111 117
112 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 118 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
113 GrPixelConfig config) overri de; 119 GrPixelConfig config) overri de;
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 bool fHWPLSEnabled; 586 bool fHWPLSEnabled;
581 bool fPLSHasBeenUsed; 587 bool fPLSHasBeenUsed;
582 588
583 float fHWMinSampleShading; 589 float fHWMinSampleShading;
584 590
585 typedef GrGpu INHERITED; 591 typedef GrGpu INHERITED;
586 friend class GrGLPathRendering; // For accessing setTextureUnit. 592 friend class GrGLPathRendering; // For accessing setTextureUnit.
587 }; 593 };
588 594
589 #endif 595 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpuCommandBuffer.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698