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

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

Issue 597323002: Split GrDrawState and GrOptDrawState into separate classes and remove base class. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More nits Created 6 years, 2 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/GrDrawState.cpp ('k') | src/gpu/GrOptDrawState.h » ('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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 687
688 private: 688 private:
689 GrDrawTarget* fDrawTarget; 689 GrDrawTarget* fDrawTarget;
690 uint32_t fDrawID; // this may wrap, but we're doing direct compa rison 690 uint32_t fDrawID; // this may wrap, but we're doing direct compa rison
691 // so that should be okay 691 // so that should be okay
692 }; 692 };
693 693
694 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); } 694 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); }
695 695
696 protected: 696 protected:
697 // Extend access to GrRODrawState::convertToPEndeingExec to subclasses. 697 // Extend access to GrDrawState::convertToPEndeingExec to subclasses.
698 void convertDrawStateToPendingExec(GrRODrawState* ds) { 698 void convertDrawStateToPendingExec(GrDrawState* ds) {
699 ds->convertToPendingExec(); 699 ds->convertToPendingExec();
700 } 700 }
701 701
702 enum GeometrySrcType { 702 enum GeometrySrcType {
703 kNone_GeometrySrcType, //<! src has not been specified 703 kNone_GeometrySrcType, //<! src has not been specified
704 kReserved_GeometrySrcType, //<! src was set using reserve*Space 704 kReserved_GeometrySrcType, //<! src was set using reserve*Space
705 kArray_GeometrySrcType, //<! src was set using set*SourceToArray 705 kArray_GeometrySrcType, //<! src was set using set*SourceToArray
706 kBuffer_GeometrySrcType //<! src was set using set*SourceToBuffer 706 kBuffer_GeometrySrcType //<! src was set using set*SourceToBuffer
707 }; 707 };
708 708
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 GrContext* fContext; 934 GrContext* fContext;
935 // To keep track that we always have at least as many debug marker adds as r emoves 935 // To keep track that we always have at least as many debug marker adds as r emoves
936 int fGpuTraceMar kerCount; 936 int fGpuTraceMar kerCount;
937 GrTraceMarkerSet fActiveTrace Markers; 937 GrTraceMarkerSet fActiveTrace Markers;
938 GrTraceMarkerSet fStoredTrace Markers; 938 GrTraceMarkerSet fStoredTrace Markers;
939 939
940 typedef SkRefCnt INHERITED; 940 typedef SkRefCnt INHERITED;
941 }; 941 };
942 942
943 #endif 943 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrOptDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698