Fix typo
R=jvanverth@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/579753003
This commit is contained in:
parent
acb882c239
commit
e3371304b8
@ -187,7 +187,7 @@ void GrContext::abandonContext() {
|
||||
// don't try to free the resources in the API.
|
||||
fResourceCache2->abandonAll();
|
||||
|
||||
fGpu->contextAbandonded();
|
||||
fGpu->contextAbandoned();
|
||||
|
||||
// a path renderer may be holding onto resources that
|
||||
// are now unusable
|
||||
|
@ -57,7 +57,7 @@ GrGpu::~GrGpu() {
|
||||
fIndexPool = NULL;
|
||||
}
|
||||
|
||||
void GrGpu::contextAbandonded() {}
|
||||
void GrGpu::contextAbandoned() {}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -62,8 +62,8 @@ public:
|
||||
// Called by GrContext when the underlying backend context has been destroyed.
|
||||
// GrGpu should use this to ensure that no backend API calls will be made from
|
||||
// here onward, including in its destructor. Subclasses should call
|
||||
// INHERITED::contextAbandonded() if they override this.
|
||||
virtual void contextAbandonded();
|
||||
// INHERITED::contextAbandoned() if they override this.
|
||||
virtual void contextAbandoned();
|
||||
|
||||
/**
|
||||
* The GrGpu object normally assumes that no outsider is setting state
|
||||
|
@ -166,8 +166,8 @@ GrGpuGL::~GrGpuGL() {
|
||||
this->releaseGeometry();
|
||||
}
|
||||
|
||||
void GrGpuGL::contextAbandonded() {
|
||||
INHERITED::contextAbandonded();
|
||||
void GrGpuGL::contextAbandoned() {
|
||||
INHERITED::contextAbandoned();
|
||||
fProgramCache->abandon();
|
||||
fHWProgramID = 0;
|
||||
if (this->glCaps().pathRenderingSupport()) {
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
GrGpuGL(const GrGLContext& ctx, GrContext* context);
|
||||
virtual ~GrGpuGL();
|
||||
|
||||
virtual void contextAbandonded() SK_OVERRIDE;
|
||||
virtual void contextAbandoned() SK_OVERRIDE;
|
||||
|
||||
const GrGLContext& glContext() const { return fGLContext; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user