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

Side by Side Diff: win8/metro_driver/direct3d_helper.h

Issue 1815463002: Remove win8/metro_driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 | « win8/metro_driver/devices_handler.cc ('k') | win8/metro_driver/direct3d_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 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 WIN8_METRO_DRIVER_DIRECT3D_HELPER_
6 #define WIN8_METRO_DRIVER_DIRECT3D_HELPER_
7
8
9 #include <windows.ui.core.h>
10 #include <windows.foundation.h>
11 #include <d3d11_1.h>
12
13 #include "base/macros.h"
14
15 namespace metro_driver {
16
17 // We need to initalize a Direct3D device and swapchain so that the browser
18 // can Present to our HWND. This class takes care of creating and keeping the
19 // swapchain up to date.
20 class Direct3DHelper {
21 public:
22 Direct3DHelper();
23 ~Direct3DHelper();
24
25 void Initialize(winui::Core::ICoreWindow* window);
26
27 private:
28 void CreateDeviceResources();
29 void CreateWindowSizeDependentResources();
30
31 winui::Core::ICoreWindow* window_;
32
33 mswr::ComPtr<ID3D11Device1> d3d_device_;
34 mswr::ComPtr<ID3D11DeviceContext1> d3d_context_;
35 mswr::ComPtr<IDXGISwapChain1> swap_chain_;
36 D3D_FEATURE_LEVEL feature_level_;
37
38 ABI::Windows::Foundation::Rect window_bounds_;
39
40 DISALLOW_COPY_AND_ASSIGN(Direct3DHelper);
41 };
42
43 } // namespace metro_driver
44
45 #endif // WIN8_METRO_DRIVER_DIRECT3D_HELPER_
OLDNEW
« no previous file with comments | « win8/metro_driver/devices_handler.cc ('k') | win8/metro_driver/direct3d_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698