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

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

Issue 1494473005: Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years 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
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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 // width and height may be larger than rt (if underlying API allows it). 381 // width and height may be larger than rt (if underlying API allows it).
382 // Returns nullptr if compatible sb could not be created, otherwise the call er owns the ref on 382 // Returns nullptr if compatible sb could not be created, otherwise the call er owns the ref on
383 // the GrStencilAttachment. 383 // the GrStencilAttachment.
384 virtual GrStencilAttachment* createStencilAttachmentForRenderTarget(const Gr RenderTarget*, 384 virtual GrStencilAttachment* createStencilAttachmentForRenderTarget(const Gr RenderTarget*,
385 int widt h, 385 int widt h,
386 int heig ht) = 0; 386 int heig ht) = 0;
387 // clears target's entire stencil buffer to 0 387 // clears target's entire stencil buffer to 0
388 virtual void clearStencil(GrRenderTarget* target) = 0; 388 virtual void clearStencil(GrRenderTarget* target) = 0;
389 389
390 // draws an outline rectangle for debugging/visualization purposes.
391 virtual void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) = 0 ;
390 392
391 // Determines whether a copy of a texture must be made in order to be compat ible with 393 // Determines whether a copy of a texture must be made in order to be compat ible with
392 // a given GrTextureParams. If so, the width, height and filter used for the copy are 394 // a given GrTextureParams. If so, the width, height and filter used for the copy are
393 // output via the CopyParams. 395 // output via the CopyParams.
394 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, 396 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&,
395 GrTextureProducer::CopyParams*) const; 397 GrTextureProducer::CopyParams*) const;
396 398
397 // This is only to be used in GL-specific tests. 399 // This is only to be used in GL-specific tests.
398 virtual const GrGLContext* glContextForTesting() const { return nullptr; } 400 virtual const GrGLContext* glContextForTesting() const { return nullptr; }
399 401
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 ResetTimestamp fResetTi mestamp; 508 ResetTimestamp fResetTi mestamp;
507 uint32_t fResetBi ts; 509 uint32_t fResetBi ts;
508 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 510 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
509 GrContext* fContext ; 511 GrContext* fContext ;
510 512
511 friend class GrPathRendering; 513 friend class GrPathRendering;
512 typedef SkRefCnt INHERITED; 514 typedef SkRefCnt INHERITED;
513 }; 515 };
514 516
515 #endif 517 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrTest.cpp » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698