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

Side by Side Diff: cc/resource_provider.cc

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resource_provider.h" 5 #include "cc/resource_provider.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 8
9 #include "base/debug/alias.h" 9 #include "base/debug/alias.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 if (!complete) 949 if (!complete)
950 return false; 950 return false;
951 } 951 }
952 952
953 resource->pendingSetPixels = false; 953 resource->pendingSetPixels = false;
954 unlockForWrite(id); 954 unlockForWrite(id);
955 955
956 return true; 956 return true;
957 } 957 }
958 958
959 void ResourceProvider::loseOutputSurface() {
960 WebGraphicsContext3D* context3d = m_outputSurface->Context3D();
jamesr 2012/12/18 21:24:01 this file's currently 4-space indent. i think bein
961 DCHECK(context3d);
962 if (!context3d)
963 return;
964 context3d->loseContextCHROMIUM(
965 GL_GUILTY_CONTEXT_RESET_EXT, GL_INNOCENT_CONTEXT_RESET_EXT);
966 }
967
959 } // namespace cc 968 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698