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

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 1228763005: small cleanups after fixing const of GrPipelineBuilder on DrawTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@const-fix3
Patch Set: tweaks Created 5 years, 5 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/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 const SkIRect& srcRect, 281 const SkIRect& srcRect,
282 const SkIPoint& dstPoint) = 0; 282 const SkIPoint& dstPoint) = 0;
283 283
284 // Check to see if this set of draw commands has been sent out 284 // Check to see if this set of draw commands has been sent out
285 virtual bool isIssued(uint32_t drawID) { return true; } 285 virtual bool isIssued(uint32_t drawID) { return true; }
286 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, 286 void getPathStencilSettingsForFilltype(GrPathRendering::FillType,
287 const GrStencilAttachment*, 287 const GrStencilAttachment*,
288 GrStencilSettings*); 288 GrStencilSettings*);
289 virtual GrClipMaskManager* clipMaskManager() = 0; 289 virtual GrClipMaskManager* clipMaskManager() = 0;
290 virtual bool setupClip(const GrPipelineBuilder&, 290 virtual bool setupClip(const GrPipelineBuilder&,
291 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 291 GrPipelineBuilder::AutoRestoreFragmentProcessorState* ,
292 GrPipelineBuilder::AutoRestoreStencil*, 292 GrPipelineBuilder::AutoRestoreStencil*,
293 GrPipelineBuilder::AutoRestoreProcessorDataManager*,
294 GrScissorState*, 293 GrScissorState*,
295 const SkRect* devBounds) = 0; 294 const SkRect* devBounds) = 0;
296 295
297 GrGpu* fGpu; 296 GrGpu* fGpu;
298 const GrCaps* fCaps; 297 const GrCaps* fCaps;
299 GrResourceProvider* fResourceProvider; 298 GrResourceProvider* fResourceProvider;
300 // To keep track that we always have at least as many debug marker adds as r emoves 299 // To keep track that we always have at least as many debug marker adds as r emoves
301 int fGpuTraceMarkerCount; 300 int fGpuTraceMarkerCount;
302 GrTraceMarkerSet fActiveTraceMarkers; 301 GrTraceMarkerSet fActiveTraceMarkers;
303 GrTraceMarkerSet fStoredTraceMarkers; 302 GrTraceMarkerSet fStoredTraceMarkers;
(...skipping 30 matching lines...) Expand all
334 void purgeResources() override; 333 void purgeResources() override;
335 334
336 protected: 335 protected:
337 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; 336 SkAutoTDelete<GrClipMaskManager> fClipMaskManager;
338 GrContext* fContext; 337 GrContext* fContext;
339 338
340 private: 339 private:
341 GrClipMaskManager* clipMaskManager() override { return fClipMaskManager; } 340 GrClipMaskManager* clipMaskManager() override { return fClipMaskManager; }
342 341
343 bool setupClip(const GrPipelineBuilder&, 342 bool setupClip(const GrPipelineBuilder&,
344 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 343 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
345 GrPipelineBuilder::AutoRestoreStencil*, 344 GrPipelineBuilder::AutoRestoreStencil*,
346 GrPipelineBuilder::AutoRestoreProcessorDataManager*,
347 GrScissorState* scissorState, 345 GrScissorState* scissorState,
348 const SkRect* devBounds) override; 346 const SkRect* devBounds) override;
349 347
350 typedef GrDrawTarget INHERITED; 348 typedef GrDrawTarget INHERITED;
351 }; 349 };
352 350
353 #endif 351 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698