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

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

Issue 1230023003: Modify GrClipMaskManager to reflect logical constness (Closed) Base URL: https://skia.googlesource.com/skia.git@proctomemorypool
Patch Set: deal with warnings 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(GrPipelineBuilder*, 290 virtual bool setupClip(GrPipelineBuilder*,
291 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 291 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
292 GrPipelineBuilder::AutoRestoreStencil*, 292 GrPipelineBuilder::AutoRestoreStencil*,
293 GrPipelineBuilder::AutoRestoreProcessorDataManager*,
293 GrScissorState*, 294 GrScissorState*,
294 const SkRect* devBounds) = 0; 295 const SkRect* devBounds) = 0;
295 296
296 GrGpu* fGpu; 297 GrGpu* fGpu;
297 const GrCaps* fCaps; 298 const GrCaps* fCaps;
298 GrResourceProvider* fResourceProvider; 299 GrResourceProvider* fResourceProvider;
299 // To keep track that we always have at least as many debug marker adds as r emoves 300 // To keep track that we always have at least as many debug marker adds as r emoves
300 int fGpuTraceMarkerCount; 301 int fGpuTraceMarkerCount;
301 GrTraceMarkerSet fActiveTraceMarkers; 302 GrTraceMarkerSet fActiveTraceMarkers;
302 GrTraceMarkerSet fStoredTraceMarkers; 303 GrTraceMarkerSet fStoredTraceMarkers;
(...skipping 29 matching lines...) Expand all
332 */ 333 */
333 void purgeResources() override; 334 void purgeResources() override;
334 335
335 protected: 336 protected:
336 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; 337 SkAutoTDelete<GrClipMaskManager> fClipMaskManager;
337 GrContext* fContext; 338 GrContext* fContext;
338 339
339 private: 340 private:
340 GrClipMaskManager* clipMaskManager() override { return fClipMaskManager; } 341 GrClipMaskManager* clipMaskManager() override { return fClipMaskManager; }
341 342
342 virtual bool setupClip(GrPipelineBuilder*, 343 bool setupClip(GrPipelineBuilder*,
343 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 344 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
344 GrPipelineBuilder::AutoRestoreStencil*, 345 GrPipelineBuilder::AutoRestoreStencil*,
345 GrScissorState* scissorState, 346 GrPipelineBuilder::AutoRestoreProcessorDataManager*,
346 const SkRect* devBounds) override; 347 GrScissorState* scissorState,
348 const SkRect* devBounds) override;
347 349
348 typedef GrDrawTarget INHERITED; 350 typedef GrDrawTarget INHERITED;
349 }; 351 };
350 352
351 #endif 353 #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