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

Side by Side Diff: src/gpu/GrTest.cpp

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 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/GrStencilAndCoverTextContext.cpp ('k') | src/gpu/effects/GrDashingEffect.h » ('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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrTest.h" 9 #include "GrTest.h"
10 10
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 /////////////////////////////////////////////////////////////////////////////// 43 ///////////////////////////////////////////////////////////////////////////////
44 // Code for the mock context. It's built on a mock GrGpu class that does nothing . 44 // Code for the mock context. It's built on a mock GrGpu class that does nothing .
45 //// 45 ////
46 46
47 #include "GrBufferAllocPool.h" 47 #include "GrBufferAllocPool.h"
48 #include "GrInOrderDrawBuffer.h" 48 #include "GrInOrderDrawBuffer.h"
49 #include "GrGpu.h" 49 #include "GrGpu.h"
50 50
51 class GrOptDrawState; 51 class GrPipeline;
52 52
53 class MockGpu : public GrGpu { 53 class MockGpu : public GrGpu {
54 public: 54 public:
55 MockGpu(GrContext* context) : INHERITED(context) { fCaps.reset(SkNEW(GrDrawT argetCaps)); } 55 MockGpu(GrContext* context) : INHERITED(context) { fCaps.reset(SkNEW(GrDrawT argetCaps)); }
56 ~MockGpu() SK_OVERRIDE {} 56 ~MockGpu() SK_OVERRIDE {}
57 bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const SK_OVERRIDE { 57 bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const SK_OVERRIDE {
58 return true; 58 return true;
59 } 59 }
60 60
61 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, 61 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
62 int left, int top, 62 int left, int top,
63 int width, int height, 63 int width, int height,
64 GrPixelConfig config, 64 GrPixelConfig config,
65 size_t rowBytes) const SK_OVERRIDE { return f alse; } 65 size_t rowBytes) const SK_OVERRIDE { return f alse; }
66 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, 66 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&,
67 const GrOptDrawState&, 67 const GrPipeline&,
68 const GrProgramDesc::DescInfo&, 68 const GrProgramDesc::DescInfo&,
69 const GrBatchTracker&) const SK_OVERRIDE {} 69 const GrBatchTracker&) const SK_OVERRIDE {}
70 70
71 void discard(GrRenderTarget*) SK_OVERRIDE {} 71 void discard(GrRenderTarget*) SK_OVERRIDE {}
72 72
73 bool canCopySurface(const GrSurface* dst, 73 bool canCopySurface(const GrSurface* dst,
74 const GrSurface* src, 74 const GrSurface* src,
75 const SkIRect& srcRect, 75 const SkIRect& srcRect,
76 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; 76 const SkIPoint& dstPoint) SK_OVERRIDE { return false; };
77 77
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // these objects are required for any of tests that use this context. TODO: make stop allocating 178 // these objects are required for any of tests that use this context. TODO: make stop allocating
179 // resources in the buffer pools. 179 // resources in the buffer pools.
180 SkDELETE(fDrawBuffer); 180 SkDELETE(fDrawBuffer);
181 SkDELETE(fDrawBufferVBAllocPool); 181 SkDELETE(fDrawBufferVBAllocPool);
182 SkDELETE(fDrawBufferIBAllocPool); 182 SkDELETE(fDrawBufferIBAllocPool);
183 183
184 fDrawBuffer = NULL; 184 fDrawBuffer = NULL;
185 fDrawBufferVBAllocPool = NULL; 185 fDrawBufferVBAllocPool = NULL;
186 fDrawBufferIBAllocPool = NULL; 186 fDrawBufferIBAllocPool = NULL;
187 } 187 }
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverTextContext.cpp ('k') | src/gpu/effects/GrDashingEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698