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

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

Issue 471433007: [Ozone-Dri] Adding initial content protection support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cast Created 6 years, 3 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 | « ui/ozone/platform/dri/dri_wrapper.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.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 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 // DriWrapper: 52 // DriWrapper:
53 virtual ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) OVERRIDE; 53 virtual ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) OVERRIDE;
54 virtual bool SetCrtc(uint32_t crtc_id, 54 virtual bool SetCrtc(uint32_t crtc_id,
55 uint32_t framebuffer, 55 uint32_t framebuffer,
56 std::vector<uint32_t> connectors, 56 std::vector<uint32_t> connectors,
57 drmModeModeInfo* mode) OVERRIDE; 57 drmModeModeInfo* mode) OVERRIDE;
58 virtual bool SetCrtc(drmModeCrtc* crtc, 58 virtual bool SetCrtc(drmModeCrtc* crtc,
59 std::vector<uint32_t> connectors) OVERRIDE; 59 std::vector<uint32_t> connectors) OVERRIDE;
60 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) OVERRIDE;
60 virtual bool AddFramebuffer(uint32_t width, 61 virtual bool AddFramebuffer(uint32_t width,
61 uint32_t height, 62 uint32_t height,
62 uint8_t depth, 63 uint8_t depth,
63 uint8_t bpp, 64 uint8_t bpp,
64 uint32_t stride, 65 uint32_t stride,
65 uint32_t handle, 66 uint32_t handle,
66 uint32_t* framebuffer) OVERRIDE; 67 uint32_t* framebuffer) OVERRIDE;
67 virtual bool RemoveFramebuffer(uint32_t framebuffer) OVERRIDE; 68 virtual bool RemoveFramebuffer(uint32_t framebuffer) OVERRIDE;
68 virtual bool PageFlip(uint32_t crtc_id, 69 virtual bool PageFlip(uint32_t crtc_id,
69 uint32_t framebuffer, 70 uint32_t framebuffer,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::vector<skia::RefPtr<SkSurface> > buffers_; 114 std::vector<skia::RefPtr<SkSurface> > buffers_;
114 115
115 std::queue<HardwareDisplayController*> controllers_; 116 std::queue<HardwareDisplayController*> controllers_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); 118 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper);
118 }; 119 };
119 120
120 } // namespace ui 121 } // namespace ui
121 122
122 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 123 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_wrapper.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698