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

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

Issue 1705133002: Add GrGpu support for Vulkan command buffer flush (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Merge postFlush and performFlushWorkaround Created 4 years, 10 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/GrDrawTarget.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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 , fDesc(desc) { 342 , fDesc(desc) {
343 SkASSERT(primProc && pipeline && desc); 343 SkASSERT(primProc && pipeline && desc);
344 } 344 }
345 const GrPrimitiveProcessor* fPrimitiveProcessor; 345 const GrPrimitiveProcessor* fPrimitiveProcessor;
346 const GrPipeline* fPipeline; 346 const GrPipeline* fPipeline;
347 const GrProgramDesc* fDesc; 347 const GrProgramDesc* fDesc;
348 }; 348 };
349 349
350 void draw(const DrawArgs&, const GrVertices&); 350 void draw(const DrawArgs&, const GrVertices&);
351 351
352 // Called by drawtarget when flushing. Provides a hook for working around an ARM PLS driver bug. 352 // Called by drawtarget when flushing.
353 virtual void performFlushWorkaround(); 353 // Provides a hook for post-flush actions (e.g. PLS reset and Vulkan command buffer submits).
354 virtual void finishDrawTarget() {}
354 355
355 /////////////////////////////////////////////////////////////////////////// 356 ///////////////////////////////////////////////////////////////////////////
356 // Debugging and Stats 357 // Debugging and Stats
357 358
358 class Stats { 359 class Stats {
359 public: 360 public:
360 #if GR_GPU_STATS 361 #if GR_GPU_STATS
361 Stats() { this->reset(); } 362 Stats() { this->reset(); }
362 363
363 void reset() { 364 void reset() {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 ResetTimestamp fResetTi mestamp; 575 ResetTimestamp fResetTi mestamp;
575 uint32_t fResetBi ts; 576 uint32_t fResetBi ts;
576 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 577 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
577 GrContext* fContext ; 578 GrContext* fContext ;
578 579
579 friend class GrPathRendering; 580 friend class GrPathRendering;
580 typedef SkRefCnt INHERITED; 581 typedef SkRefCnt INHERITED;
581 }; 582 };
582 583
583 #endif 584 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698