OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 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" |
| 6 |
| 7 namespace gpu { |
| 8 namespace gles2 { |
| 9 |
| 10 FramebufferCompletenessCache::FramebufferCompletenessCache() {} |
| 11 |
| 12 FramebufferCompletenessCache::~FramebufferCompletenessCache() {} |
| 13 |
| 14 bool FramebufferCompletenessCache::IsComplete( |
| 15 const std::string& signature) const { |
| 16 return cache_.find(signature) != cache_.end(); |
| 17 } |
| 18 |
| 19 void FramebufferCompletenessCache::SetComplete(const std::string& signature) { |
| 20 cache_.insert(signature); |
| 21 } |
| 22 |
| 23 } // namespace gles2 |
| 24 } // namespace gpu |
OLD | NEW |