Elim cr-checkbox
[chromium-blink-merge.git] / gpu / command_buffer / service / framebuffer_completeness_cache.cc
blob183b023314f303f377088318caeb9ac787c1dd86
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"
7 namespace gpu {
8 namespace gles2 {
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);
23 } // namespace gles2
24 } // namespace gpu