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

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

Issue 1275543005: Move some work from backend onClear to base class clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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
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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 virtual GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, 443 virtual GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc,
444 GrGpuResource::LifeCycle lifeCy cle, 444 GrGpuResource::LifeCycle lifeCy cle,
445 const void* srcData) = 0; 445 const void* srcData) = 0;
446 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapO wnership) = 0; 446 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapO wnership) = 0;
447 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&, 447 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&,
448 GrWrapOwnership) = 0; 448 GrWrapOwnership) = 0;
449 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) = 0; 449 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) = 0;
450 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) = 0; 450 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) = 0;
451 451
452 // overridden by backend-specific derived class to perform the clear. 452 // overridden by backend-specific derived class to perform the clear.
453 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 453 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color) = 0;
454 bool canIgnoreRect) = 0;
455 454
456 455
457 // Overridden by backend specific classes to perform a clear of the stencil clip bits. This is 456 // Overridden by backend specific classes to perform a clear of the stencil clip bits. This is
458 // ONLY used by the the clip target 457 // ONLY used by the the clip target
459 virtual void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool i nsideClip) = 0; 458 virtual void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool i nsideClip) = 0;
460 459
461 // overridden by backend-specific derived class to perform the draw call. 460 // overridden by backend-specific derived class to perform the draw call.
462 virtual void onDraw(const DrawArgs&, const GrNonInstancedVertices&) = 0; 461 virtual void onDraw(const DrawArgs&, const GrNonInstancedVertices&) = 0;
463 462
464 virtual bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int r eadHeight, 463 virtual bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int r eadHeight,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 GrTraceMarkerSet fActiveT raceMarkers; 517 GrTraceMarkerSet fActiveT raceMarkers;
519 GrTraceMarkerSet fStoredT raceMarkers; 518 GrTraceMarkerSet fStoredT raceMarkers;
520 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 519 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
521 GrContext* fContext ; 520 GrContext* fContext ;
522 521
523 friend class GrPathRendering; 522 friend class GrPathRendering;
524 typedef SkRefCnt INHERITED; 523 typedef SkRefCnt INHERITED;
525 }; 524 };
526 525
527 #endif 526 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCaps.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | src/gpu/GrGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698