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

Side by Side Diff: include/gpu/GrContext.h

Issue 2263343002: Move clip mask generation into GrReducedClip (Closed) Base URL: https://skia.googlesource.com/skia.git@upload2_clipclears
Patch Set: msvc Created 4 years, 3 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 | « no previous file | src/gpu/GrClipStackClip.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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 SkTDArray<CleanUpData> fCleanUpData; 424 SkTDArray<CleanUpData> fCleanUpData;
425 425
426 const uint32_t fUniqueID; 426 const uint32_t fUniqueID;
427 427
428 SkAutoTDelete<GrDrawingManager> fDrawingManager; 428 SkAutoTDelete<GrDrawingManager> fDrawingManager;
429 429
430 GrAuditTrail fAuditTrail; 430 GrAuditTrail fAuditTrail;
431 431
432 // TODO: have the GrClipStackClip use drawContexts and rm this friending 432 // TODO: have the GrClipStackClip use drawContexts and rm this friending
433 friend class GrClipStackClip; // for access to drawingManager
434 friend class GrDrawingManager; // for access to drawingManager for ProgramUn itTest
435 friend class GrContextPriv; 433 friend class GrContextPriv;
436 434
437 GrDrawingManager* drawingManager() { return fDrawingManager; }
438
439 GrContext(); // init must be called after the constructor. 435 GrContext(); // init must be called after the constructor.
440 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); 436 bool init(GrBackend, GrBackendContext, const GrContextOptions& options);
441 437
442 void initMockContext(); 438 void initMockContext();
443 void initCommon(const GrContextOptions&); 439 void initCommon(const GrContextOptions&);
444 440
445 /** 441 /**
446 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair 442 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair
447 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they 443 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they
448 * return NULL. They also can perform a swizzle as part of the draw. 444 * return NULL. They also can perform a swizzle as part of the draw.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 SkAutoTUnref<const GrCaps> fCaps; 483 SkAutoTUnref<const GrCaps> fCaps;
488 uint32_t fContextUniqueID; 484 uint32_t fContextUniqueID;
489 485
490 friend class GrContext; 486 friend class GrContext;
491 friend class SkImage; 487 friend class SkImage;
492 488
493 typedef SkRefCnt INHERITED; 489 typedef SkRefCnt INHERITED;
494 }; 490 };
495 491
496 #endif 492 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrClipStackClip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698