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

Side by Side Diff: ui/ozone/platform/dri/test/mock_surface_generator.h

Issue 402773002: [Ozone-DRI] Removing MockDriSurface implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_ 6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/ozone/platform/dri/test/mock_dri_surface.h" 10 #include "ui/ozone/platform/dri/dri_surface.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Size; 13 class Size;
14 } 14 }
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class DriWrapper; 18 class DriWrapper;
19 19
20 class MockSurfaceGenerator : public ScanoutSurfaceGenerator { 20 class MockSurfaceGenerator : public ScanoutSurfaceGenerator {
21 public: 21 public:
22 MockSurfaceGenerator(DriWrapper* dri); 22 MockSurfaceGenerator(DriWrapper* dri);
23 virtual ~MockSurfaceGenerator(); 23 virtual ~MockSurfaceGenerator();
24 24
25 std::vector<MockDriSurface*> surfaces() const { return surfaces_; } 25 std::vector<DriSurface*> surfaces() const { return surfaces_; }
26 26
27 // ScanoutSurfaceGenerator: 27 // ScanoutSurfaceGenerator:
28 virtual ScanoutSurface* Create(const gfx::Size& size) OVERRIDE; 28 virtual ScanoutSurface* Create(const gfx::Size& size) OVERRIDE;
29 29
30 private: 30 private:
31 DriWrapper* dri_; // Not owned. 31 DriWrapper* dri_; // Not owned.
32 32
33 std::vector<MockDriSurface*> surfaces_; 33 std::vector<DriSurface*> surfaces_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(MockSurfaceGenerator); 35 DISALLOW_COPY_AND_ASSIGN(MockSurfaceGenerator);
36 }; 36 };
37 37
38 } // namespace ui 38 } // namespace ui
39 39
40 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_ 40 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698