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

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: fix no-gpu build 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 // width and height may be larger than rt (if underlying API allows it). 379 // width and height may be larger than rt (if underlying API allows it).
380 // Returns nullptr if compatible sb could not be created, otherwise the call er owns the ref on 380 // Returns nullptr if compatible sb could not be created, otherwise the call er owns the ref on
381 // the GrStencilAttachment. 381 // the GrStencilAttachment.
382 virtual GrStencilAttachment* createStencilAttachmentForRenderTarget(const Gr RenderTarget*, 382 virtual GrStencilAttachment* createStencilAttachmentForRenderTarget(const Gr RenderTarget*,
383 int widt h, 383 int widt h,
384 int heig ht) = 0; 384 int heig ht) = 0;
385 // clears target's entire stencil buffer to 0 385 // clears target's entire stencil buffer to 0
386 virtual void clearStencil(GrRenderTarget* target) = 0; 386 virtual void clearStencil(GrRenderTarget* target) = 0;
387 387
388 // draws an outline rectangle for debugging/visualization purposes.
389 virtual void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) = 0 ;
388 390
389 // Determines whether a copy of a texture must be made in order to be compat ible with 391 // Determines whether a copy of a texture must be made in order to be compat ible with
390 // a given GrTextureParams. If so, the width, height and filter used for the copy are 392 // a given GrTextureParams. If so, the width, height and filter used for the copy are
391 // output via the CopyParams. 393 // output via the CopyParams.
392 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, 394 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&,
393 GrTextureProducer::CopyParams*) const; 395 GrTextureProducer::CopyParams*) const;
394 396
395 // This is only to be used in GL-specific tests. 397 // This is only to be used in GL-specific tests.
396 virtual const GrGLContext* glContextForTesting() const { return nullptr; } 398 virtual const GrGLContext* glContextForTesting() const { return nullptr; }
397 399
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 ResetTimestamp fResetTi mestamp; 503 ResetTimestamp fResetTi mestamp;
502 uint32_t fResetBi ts; 504 uint32_t fResetBi ts;
503 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 505 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
504 GrContext* fContext ; 506 GrContext* fContext ;
505 507
506 friend class GrPathRendering; 508 friend class GrPathRendering;
507 typedef SkRefCnt INHERITED; 509 typedef SkRefCnt INHERITED;
508 }; 510 };
509 511
510 #endif 512 #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