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

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

Issue 682223002: rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const 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/GrDistanceFieldTextContext.cpp ('k') | src/gpu/GrDrawTarget.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 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 bool canCopySurface(GrSurface* dst, 465 bool canCopySurface(GrSurface* dst,
466 GrSurface* src, 466 GrSurface* src,
467 const SkIRect& srcRect, 467 const SkIRect& srcRect,
468 const SkIPoint& dstPoint); 468 const SkIPoint& dstPoint);
469 469
470 /** 470 /**
471 * This is can be called before allocating a texture to be a dst for copySur face. It will 471 * This is can be called before allocating a texture to be a dst for copySur face. It will
472 * populate the origin, config, and flags fields of the desc such that copyS urface is more 472 * populate the origin, config, and flags fields of the desc such that copyS urface is more
473 * likely to succeed and be efficient. 473 * likely to succeed and be efficient.
474 */ 474 */
475 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des c); 475 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* des c);
476 476
477 477
478 /** 478 /**
479 * Release any resources that are cached but not currently in use. This 479 * Release any resources that are cached but not currently in use. This
480 * is intended to give an application some recourse when resources are low. 480 * is intended to give an application some recourse when resources are low.
481 */ 481 */
482 virtual void purgeResources() {}; 482 virtual void purgeResources() {};
483 483
484 /** 484 /**
485 * For subclass internal use to invoke a call to onDraw(). See DrawInfo belo w. 485 * For subclass internal use to invoke a call to onDraw(). See DrawInfo belo w.
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 GrContext* fContext; 943 GrContext* fContext;
944 // To keep track that we always have at least as many debug marker adds as r emoves 944 // To keep track that we always have at least as many debug marker adds as r emoves
945 int fGpuTraceMar kerCount; 945 int fGpuTraceMar kerCount;
946 GrTraceMarkerSet fActiveTrace Markers; 946 GrTraceMarkerSet fActiveTrace Markers;
947 GrTraceMarkerSet fStoredTrace Markers; 947 GrTraceMarkerSet fStoredTrace Markers;
948 948
949 typedef SkRefCnt INHERITED; 949 typedef SkRefCnt INHERITED;
950 }; 950 };
951 951
952 #endif 952 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698