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

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

Issue 1492633007: Revert of Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrTest.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 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 ;
392 390
393 // 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
394 // 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
395 // output via the CopyParams. 393 // output via the CopyParams.
396 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, 394 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&,
397 GrTextureProducer::CopyParams*) const; 395 GrTextureProducer::CopyParams*) const;
398 396
399 // This is only to be used in GL-specific tests. 397 // This is only to be used in GL-specific tests.
400 virtual const GrGLContext* glContextForTesting() const { return nullptr; } 398 virtual const GrGLContext* glContextForTesting() const { return nullptr; }
401 399
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 ResetTimestamp fResetTi mestamp; 506 ResetTimestamp fResetTi mestamp;
509 uint32_t fResetBi ts; 507 uint32_t fResetBi ts;
510 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 508 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
511 GrContext* fContext ; 509 GrContext* fContext ;
512 510
513 friend class GrPathRendering; 511 friend class GrPathRendering;
514 typedef SkRefCnt INHERITED; 512 typedef SkRefCnt INHERITED;
515 }; 513 };
516 514
517 #endif 515 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698