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 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/GrFragmentProcessor.cpp ('k') | src/gpu/GrGpu.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 * Implements GrTextureProvider::wrapBackendTextureAsRenderTarget 125 * Implements GrTextureProvider::wrapBackendTextureAsRenderTarget
126 */ 126 */
127 GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc& , GrWrapOwnership); 127 GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc& , GrWrapOwnership);
128 128
129 /** 129 /**
130 * Creates a buffer. 130 * Creates a buffer.
131 * 131 *
132 * @return the buffer if successful, otherwise nullptr. 132 * @return the buffer if successful, otherwise nullptr.
133 */ 133 */
134 GrBuffer* createBuffer(GrBufferType, size_t size, GrAccessPattern); 134 GrBuffer* createBuffer(GrBufferType, size_t size, GrAccessPattern);
135 135
136 /** 136 /**
137 * Resolves MSAA. 137 * Resolves MSAA.
138 */ 138 */
139 void resolveRenderTarget(GrRenderTarget* target); 139 void resolveRenderTarget(GrRenderTarget* target);
140 140
141 /** Info struct returned by getReadPixelsInfo about performing intermediate draws before 141 /** Info struct returned by getReadPixelsInfo about performing intermediate draws before
142 reading pixels for performance or correctness. */ 142 reading pixels for performance or correctness. */
143 struct ReadPixelTempDrawInfo { 143 struct ReadPixelTempDrawInfo {
144 /** If the GrGpu is requesting that the caller do a draw to an intermedi ate surface then 144 /** If the GrGpu is requesting that the caller do a draw to an intermedi ate surface then
145 this is descriptor for the temp surface. The draw should always be a rect with 145 this is descriptor for the temp surface. The draw should always be a rect with
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // We pass in an array of meshCount GrMesh to the draw. The backend should l oop over each 351 // We pass in an array of meshCount GrMesh to the draw. The backend should l oop over each
352 // GrMesh object and emit a draw for it. Each draw will use the same GrPipel ine and 352 // GrMesh object and emit a draw for it. Each draw will use the same GrPipel ine and
353 // GrPrimitiveProcessor. This may fail if the draw would exceed any resource limits (e.g. 353 // GrPrimitiveProcessor. This may fail if the draw would exceed any resource limits (e.g.
354 // number of vertex attributes is too large). 354 // number of vertex attributes is too large).
355 bool draw(const GrPipeline&, 355 bool draw(const GrPipeline&,
356 const GrPrimitiveProcessor&, 356 const GrPrimitiveProcessor&,
357 const GrMesh*, 357 const GrMesh*,
358 int meshCount); 358 int meshCount);
359 359
360 // Called by drawtarget when flushing. 360 // Called by drawtarget when flushing.
361 // Provides a hook for post-flush actions (e.g. PLS reset and Vulkan command buffer submits). 361 // Provides a hook for post-flush actions (e.g. PLS reset and Vulkan command buffer submits).
362 virtual void finishDrawTarget() {} 362 virtual void finishDrawTarget() {}
363 363
364 /////////////////////////////////////////////////////////////////////////// 364 ///////////////////////////////////////////////////////////////////////////
365 // Debugging and Stats 365 // Debugging and Stats
366 366
367 class Stats { 367 class Stats {
368 public: 368 public:
369 #if GR_GPU_STATS 369 #if GR_GPU_STATS
370 Stats() { this->reset(); } 370 Stats() { this->reset(); }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 SkTArray<const MultisampleSpecs*, true> fMultisa mpleSpecsMap; 599 SkTArray<const MultisampleSpecs*, true> fMultisa mpleSpecsMap;
600 GrTAllocator<MultisampleSpecs> fMultisa mpleSpecsAllocator; 600 GrTAllocator<MultisampleSpecs> fMultisa mpleSpecsAllocator;
601 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 601 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
602 GrContext* fContext ; 602 GrContext* fContext ;
603 603
604 friend class GrPathRendering; 604 friend class GrPathRendering;
605 typedef SkRefCnt INHERITED; 605 typedef SkRefCnt INHERITED;
606 }; 606 };
607 607
608 #endif 608 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrFragmentProcessor.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698