Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |