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

Side by Side Diff: cc/surfaces/surface_factory_unittest.cc

Issue 645853008: Standardize usage of virtual/override/final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted Created 6 years, 2 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/surfaces/surface_aggregator_unittest.cc ('k') | cc/surfaces/surfaces_pixeltest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/output/compositor_frame.h" 5 #include "cc/output/compositor_frame.h"
6 #include "cc/output/delegated_frame_data.h" 6 #include "cc/output/delegated_frame_data.h"
7 #include "cc/surfaces/surface.h" 7 #include "cc/surfaces/surface.h"
8 #include "cc/surfaces/surface_factory.h" 8 #include "cc/surfaces/surface_factory.h"
9 #include "cc/surfaces/surface_factory_client.h" 9 #include "cc/surfaces/surface_factory_client.h"
10 #include "cc/surfaces/surface_manager.h" 10 #include "cc/surfaces/surface_manager.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
13 13
14 namespace cc { 14 namespace cc {
15 namespace { 15 namespace {
16 16
17 class TestSurfaceFactoryClient : public SurfaceFactoryClient { 17 class TestSurfaceFactoryClient : public SurfaceFactoryClient {
18 public: 18 public:
19 TestSurfaceFactoryClient() {} 19 TestSurfaceFactoryClient() {}
20 virtual ~TestSurfaceFactoryClient() {} 20 ~TestSurfaceFactoryClient() override {}
21 21
22 virtual void ReturnResources( 22 void ReturnResources(const ReturnedResourceArray& resources) override {
23 const ReturnedResourceArray& resources) override {
24 returned_resources_.insert( 23 returned_resources_.insert(
25 returned_resources_.end(), resources.begin(), resources.end()); 24 returned_resources_.end(), resources.begin(), resources.end());
26 } 25 }
27 26
28 const ReturnedResourceArray& returned_resources() const { 27 const ReturnedResourceArray& returned_resources() const {
29 return returned_resources_; 28 return returned_resources_;
30 } 29 }
31 30
32 void clear_returned_resources() { returned_resources_.clear(); } 31 void clear_returned_resources() { returned_resources_.clear(); }
33 32
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 factory_.Create(id2, gfx::Size(5, 5)); 393 factory_.Create(id2, gfx::Size(5, 5));
395 sequence.clear(); 394 sequence.clear();
396 sequence.insert(SurfaceSequence(0, 6)); 395 sequence.insert(SurfaceSequence(0, 6));
397 DCHECK(manager_.GetSurfaceForId(id2)); 396 DCHECK(manager_.GetSurfaceForId(id2));
398 factory_.DestroyOnSequence(id2, sequence); 397 factory_.DestroyOnSequence(id2, sequence);
399 DCHECK(!manager_.GetSurfaceForId(id2)); 398 DCHECK(!manager_.GetSurfaceForId(id2));
400 } 399 }
401 400
402 } // namespace 401 } // namespace
403 } // namespace cc 402 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698