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

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

Issue 106633002: GBM Ozone implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
7
8 #include <vector>
9
10 #include "ui/ozone/platform/dri/test/mock_dri_surface.h"
11
12 namespace gfx {
13 class Size;
14 }
15
16 namespace ui {
17
18 class DriWrapper;
19
20 class MockSurfaceGenerator : public ScanoutSurfaceGenerator {
21 public:
22 MockSurfaceGenerator(DriWrapper* dri);
23 virtual ~MockSurfaceGenerator();
24
25 std::vector<MockDriSurface*> surfaces() const { return surfaces_; }
26
27 // ScanoutSurfaceGenerator:
28 virtual ScanoutSurface* Create(const gfx::Size& size) OVERRIDE;
29
30 private:
31 DriWrapper* dri_; // Not owned.
32
33 std::vector<MockDriSurface*> surfaces_;
34
35 DISALLOW_COPY_AND_ASSIGN(MockSurfaceGenerator);
36 };
37
38 } // namespace ui
39
40 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_SURFACE_GENERATOR_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/screen_manager_unittest.cc ('k') | ui/ozone/platform/dri/test/mock_surface_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698