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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_picture_pile.cc ('k') | cc/test/layer_tree_json_parser.cc » ('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_picture_pile_impl.h" 5 #include "cc/test/fake_picture_pile_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "cc/resources/picture_pile.h" 12 #include "cc/resources/picture_pile.h"
13 #include "cc/test/impl_side_painting_settings.h" 13 #include "cc/test/impl_side_painting_settings.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace cc { 16 namespace cc {
17 17
18 FakePicturePileImpl::FakePicturePileImpl() : playback_allowed_event_(nullptr) { 18 FakePicturePileImpl::FakePicturePileImpl() : playback_allowed_event_(nullptr) {
19 } 19 }
20 20
21 FakePicturePileImpl::FakePicturePileImpl( 21 FakePicturePileImpl::FakePicturePileImpl(
22 const PicturePile* other, 22 const PicturePile* other,
23 base::WaitableEvent* playback_allowed_event) 23 base::WaitableEvent* playback_allowed_event)
24 : PicturePileImpl(other, true), 24 : PicturePileImpl(other),
25 playback_allowed_event_(playback_allowed_event), 25 playback_allowed_event_(playback_allowed_event),
26 tile_grid_size_(other->GetTileGridSizeForTesting()) { 26 tile_grid_size_(other->GetTileGridSizeForTesting()) {
27 } 27 }
28 28
29 FakePicturePileImpl::~FakePicturePileImpl() {} 29 FakePicturePileImpl::~FakePicturePileImpl() {}
30 30
31 scoped_refptr<FakePicturePileImpl> FakePicturePileImpl::CreatePile( 31 scoped_refptr<FakePicturePileImpl> FakePicturePileImpl::CreatePile(
32 const gfx::Size& tile_size, 32 const gfx::Size& tile_size,
33 const gfx::Size& layer_bounds, 33 const gfx::Size& layer_bounds,
34 bool is_filled) { 34 bool is_filled) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 bool FakePicturePileImpl::HasRecordingAt(int x, int y) const { 115 bool FakePicturePileImpl::HasRecordingAt(int x, int y) const {
116 PictureMap::const_iterator found = picture_map_.find(PictureMapKey(x, y)); 116 PictureMap::const_iterator found = picture_map_.find(PictureMapKey(x, y));
117 if (found == picture_map_.end()) 117 if (found == picture_map_.end())
118 return false; 118 return false;
119 return !!found->second.GetPicture(); 119 return !!found->second.GetPicture();
120 } 120 }
121 121
122 } // namespace cc 122 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_pile.cc ('k') | cc/test/layer_tree_json_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698