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

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

Issue 699733002: removing setVertexArraySource from drawtarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: a bit more cleanup Created 6 years, 1 month 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 void finalizeReservedIndices(); 365 void finalizeReservedIndices();
366 366
367 SkAutoTDelete<GrPathRendering> fPathRendering; 367 SkAutoTDelete<GrPathRendering> fPathRendering;
368 368
369 private: 369 private:
370 // GrDrawTarget overrides 370 // GrDrawTarget overrides
371 virtual bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertices) SK_OVERRIDE; 371 virtual bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertices) SK_OVERRIDE;
372 virtual bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE ; 372 virtual bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE ;
373 virtual void releaseReservedVertexSpace() SK_OVERRIDE; 373 virtual void releaseReservedVertexSpace() SK_OVERRIDE;
374 virtual void releaseReservedIndexSpace() SK_OVERRIDE; 374 virtual void releaseReservedIndexSpace() SK_OVERRIDE;
375 virtual void onSetVertexSourceToArray(const void* vertexArray, int vertexCou nt) SK_OVERRIDE;
376 virtual void onSetIndexSourceToArray(const void* indexArray, int indexCount) SK_OVERRIDE;
377 virtual void releaseVertexArray() SK_OVERRIDE;
378 virtual void releaseIndexArray() SK_OVERRIDE;
379 virtual void geometrySourceWillPush() SK_OVERRIDE; 375 virtual void geometrySourceWillPush() SK_OVERRIDE;
380 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK _OVERRIDE; 376 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK _OVERRIDE;
381 377
382 378
383 // called when the 3D context state is unknown. Subclass should emit any 379 // called when the 3D context state is unknown. Subclass should emit any
384 // assumed 3D context state and dirty any state cache. 380 // assumed 3D context state and dirty any state cache.
385 virtual void onResetContext(uint32_t resetBits) = 0; 381 virtual void onResetContext(uint32_t resetBits) = 0;
386 382
387 // overridden by backend-specific derived class to create objects. 383 // overridden by backend-specific derived class to create objects.
388 virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc, 384 virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 // counts number of uses of vertex/index pool in the geometry stack 482 // counts number of uses of vertex/index pool in the geometry stack
487 int fVertexP oolUseCnt; 483 int fVertexP oolUseCnt;
488 int fIndexPo olUseCnt; 484 int fIndexPo olUseCnt;
489 // these are mutable so they can be created on-demand 485 // these are mutable so they can be created on-demand
490 mutable GrIndexBuffer* fQuadInd exBuffer; 486 mutable GrIndexBuffer* fQuadInd exBuffer;
491 487
492 typedef GrClipTarget INHERITED; 488 typedef GrClipTarget INHERITED;
493 }; 489 };
494 490
495 #endif 491 #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