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

Side by Side Diff: ui/gfx/ozone/dri/dri_surface_factory_unittest.cc

Issue 62953003: Support removal of DRI platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix use_ozone=0 Created 7 years, 1 month 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
« no previous file with comments | « ui/gfx/ozone/dri/dri_surface_factory.cc ('k') | ui/gfx/ozone/dri/dri_surface_unittest.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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/ozone/impl/dri_skbitmap.h" 8 #include "ui/gfx/ozone/dri/dri_skbitmap.h"
9 #include "ui/gfx/ozone/impl/dri_surface.h" 9 #include "ui/gfx/ozone/dri/dri_surface.h"
10 #include "ui/gfx/ozone/impl/dri_surface_factory.h" 10 #include "ui/gfx/ozone/dri/dri_surface_factory.h"
11 #include "ui/gfx/ozone/impl/dri_wrapper.h" 11 #include "ui/gfx/ozone/dri/dri_wrapper.h"
12 #include "ui/gfx/ozone/impl/hardware_display_controller.h" 12 #include "ui/gfx/ozone/dri/hardware_display_controller.h"
13 #include "ui/gfx/ozone/surface_factory_ozone.h" 13 #include "ui/gfx/ozone/surface_factory_ozone.h"
14 14
15 namespace { 15 namespace {
16 16
17 const drmModeModeInfo kDefaultMode = 17 const drmModeModeInfo kDefaultMode =
18 {0, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, {'\0'}}; 18 {0, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, {'\0'}};
19 19
20 // Mock file descriptor ID. 20 // Mock file descriptor ID.
21 const int kFd = 3; 21 const int kFd = 3;
22 22
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 EXPECT_EQ(gfx::SurfaceFactoryOzone::INITIALIZED, 283 EXPECT_EQ(gfx::SurfaceFactoryOzone::INITIALIZED,
284 factory_->InitializeHardware()); 284 factory_->InitializeHardware());
285 285
286 gfx::AcceleratedWidget w = factory_->GetAcceleratedWidget(); 286 gfx::AcceleratedWidget w = factory_->GetAcceleratedWidget();
287 EXPECT_EQ(kDefaultWidgetHandle, w); 287 EXPECT_EQ(kDefaultWidgetHandle, w);
288 288
289 EXPECT_NE(gfx::kNullAcceleratedWidget, factory_->RealizeAcceleratedWidget(w)); 289 EXPECT_NE(gfx::kNullAcceleratedWidget, factory_->RealizeAcceleratedWidget(w));
290 290
291 EXPECT_TRUE(factory_->SchedulePageFlip(w)); 291 EXPECT_TRUE(factory_->SchedulePageFlip(w));
292 } 292 }
OLDNEW
« no previous file with comments | « ui/gfx/ozone/dri/dri_surface_factory.cc ('k') | ui/gfx/ozone/dri/dri_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698