Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
no sievers
2015/08/19 00:43:13
nit: drop '(c)'
Tobias Sargeant
2015/08/19 11:33:13
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "gpu/command_buffer/service/framebuffer_completeness_cache.h" | |
|
no sievers
2015/08/19 00:43:13
nit: newline after #include
Tobias Sargeant
2015/08/19 11:33:13
Done.
| |
| 6 namespace gpu { | |
| 7 namespace gles2 { | |
| 8 | |
| 9 FramebufferCompletenessCache::FramebufferCompletenessCache() {} | |
| 10 | |
| 11 FramebufferCompletenessCache::~FramebufferCompletenessCache() {} | |
| 12 | |
| 13 bool FramebufferCompletenessCache::IsComplete( | |
| 14 const std::string& signature) const { | |
| 15 return cache_.find(signature) != cache_.end(); | |
| 16 } | |
| 17 | |
| 18 void FramebufferCompletenessCache::SetComplete(const std::string& signature) { | |
| 19 cache_.insert(signature); | |
| 20 } | |
| 21 | |
| 22 } // namespace gles2 | |
| 23 } // namespace gpu | |
| OLD | NEW |