Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3944)

Unified Diff: cc/test/fake_ui_resource_layer_tree_host_impl.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_ui_resource_layer_tree_host_impl.h ('k') | cc/test/fake_video_frame_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_ui_resource_layer_tree_host_impl.cc
diff --git a/cc/test/fake_ui_resource_layer_tree_host_impl.cc b/cc/test/fake_ui_resource_layer_tree_host_impl.cc
deleted file mode 100644
index 43617a6ca085217c1217a328604824128a415c85..0000000000000000000000000000000000000000
--- a/cc/test/fake_ui_resource_layer_tree_host_impl.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/test/fake_ui_resource_layer_tree_host_impl.h"
-
-#include "cc/resources/ui_resource_bitmap.h"
-#include "cc/test/fake_layer_tree_host_impl.h"
-
-namespace cc {
-
-FakeUIResourceLayerTreeHostImpl::FakeUIResourceLayerTreeHostImpl(
- Proxy* proxy,
- SharedBitmapManager* manager)
- : FakeLayerTreeHostImpl(proxy, manager, nullptr),
- fake_next_resource_id_(1) {
-}
-
-FakeUIResourceLayerTreeHostImpl::~FakeUIResourceLayerTreeHostImpl() {}
-
-void FakeUIResourceLayerTreeHostImpl::CreateUIResource(
- UIResourceId uid,
- const UIResourceBitmap& bitmap) {
- if (ResourceIdForUIResource(uid))
- DeleteUIResource(uid);
-
- UIResourceData data;
- data.resource_id = fake_next_resource_id_++;
- data.size = bitmap.GetSize();
- data.opaque = bitmap.GetOpaque();
- fake_ui_resource_map_[uid] = data;
-}
-
-void FakeUIResourceLayerTreeHostImpl::DeleteUIResource(UIResourceId uid) {
- ResourceProvider::ResourceId id = ResourceIdForUIResource(uid);
- if (id)
- fake_ui_resource_map_.erase(uid);
-}
-
-ResourceProvider::ResourceId
- FakeUIResourceLayerTreeHostImpl::ResourceIdForUIResource(
- UIResourceId uid) const {
- UIResourceMap::const_iterator iter = fake_ui_resource_map_.find(uid);
- if (iter != fake_ui_resource_map_.end())
- return iter->second.resource_id;
- return 0;
-}
-
-bool FakeUIResourceLayerTreeHostImpl::IsUIResourceOpaque(UIResourceId uid)
- const {
- UIResourceMap::const_iterator iter = fake_ui_resource_map_.find(uid);
- DCHECK(iter != fake_ui_resource_map_.end());
- return iter->second.opaque;
-}
-
-} // namespace cc
« no previous file with comments | « cc/test/fake_ui_resource_layer_tree_host_impl.h ('k') | cc/test/fake_video_frame_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698