Chromium Code Reviews

Side by Side Diff: cc/test/fake_ui_resource_layer_tree_host_impl.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://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.
Jump to:
View unified diff |
« no previous file with comments | « cc/test/data/yuv_stripes_clipped.png ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/fake_ui_resource_layer_tree_host_impl.h" 5 #include "cc/test/fake_ui_resource_layer_tree_host_impl.h"
6 6
7 #include "cc/resources/ui_resource_bitmap.h"
7 #include "cc/test/fake_layer_tree_host_impl.h" 8 #include "cc/test/fake_layer_tree_host_impl.h"
8 9
9 namespace cc { 10 namespace cc {
10 11
11 FakeUIResourceLayerTreeHostImpl::FakeUIResourceLayerTreeHostImpl( 12 FakeUIResourceLayerTreeHostImpl::FakeUIResourceLayerTreeHostImpl(
12 Proxy* proxy, 13 Proxy* proxy,
13 SharedBitmapManager* manager) 14 SharedBitmapManager* manager)
14 : FakeLayerTreeHostImpl(proxy, manager), fake_next_resource_id_(1) {} 15 : FakeLayerTreeHostImpl(proxy, manager), fake_next_resource_id_(1) {}
15 16
16 FakeUIResourceLayerTreeHostImpl::~FakeUIResourceLayerTreeHostImpl() {} 17 FakeUIResourceLayerTreeHostImpl::~FakeUIResourceLayerTreeHostImpl() {}
(...skipping 27 matching lines...)
44 } 45 }
45 46
46 bool FakeUIResourceLayerTreeHostImpl::IsUIResourceOpaque(UIResourceId uid) 47 bool FakeUIResourceLayerTreeHostImpl::IsUIResourceOpaque(UIResourceId uid)
47 const { 48 const {
48 UIResourceMap::const_iterator iter = fake_ui_resource_map_.find(uid); 49 UIResourceMap::const_iterator iter = fake_ui_resource_map_.find(uid);
49 DCHECK(iter != fake_ui_resource_map_.end()); 50 DCHECK(iter != fake_ui_resource_map_.end());
50 return iter->second.opaque; 51 return iter->second.opaque;
51 } 52 }
52 53
53 } // namespace cc 54 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/data/yuv_stripes_clipped.png ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine