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.
5 #include "gpu/command_buffer/service/framebuffer_completeness_cache.h"
10 FramebufferCompletenessCache::FramebufferCompletenessCache() {}
12 FramebufferCompletenessCache::~FramebufferCompletenessCache() {}
14 bool FramebufferCompletenessCache::IsComplete(
15 const std::string
& signature
) const {
16 return cache_
.find(signature
) != cache_
.end();
19 void FramebufferCompletenessCache::SetComplete(const std::string
& signature
) {
20 cache_
.insert(signature
);