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

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

Issue 407603002: [Ozone-DRI] Migrate cursor to using ScanoutBuffer (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_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 <vector> 8 #include <vector>
9 9
10 #include "skia/ext/refptr.h" 10 #include "skia/ext/refptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int overlay_plane) OVERRIDE; 68 int overlay_plane) OVERRIDE;
69 virtual ScopedDrmPropertyPtr GetProperty(drmModeConnector* connector, 69 virtual ScopedDrmPropertyPtr GetProperty(drmModeConnector* connector,
70 const char* name) OVERRIDE; 70 const char* name) OVERRIDE;
71 virtual bool SetProperty(uint32_t connector_id, 71 virtual bool SetProperty(uint32_t connector_id,
72 uint32_t property_id, 72 uint32_t property_id,
73 uint64_t value) OVERRIDE; 73 uint64_t value) OVERRIDE;
74 virtual ScopedDrmPropertyBlobPtr GetPropertyBlob(drmModeConnector* connector, 74 virtual ScopedDrmPropertyBlobPtr GetPropertyBlob(drmModeConnector* connector,
75 const char* name) OVERRIDE; 75 const char* name) OVERRIDE;
76 virtual bool SetCursor(uint32_t crtc_id, 76 virtual bool SetCursor(uint32_t crtc_id,
77 uint32_t handle, 77 uint32_t handle,
78 uint32_t width, 78 const gfx::Size& size) OVERRIDE;
79 uint32_t height) OVERRIDE; 79 virtual bool MoveCursor(uint32_t crtc_id, const gfx::Point& point) OVERRIDE;
80 virtual bool MoveCursor(uint32_t crtc_id, int x, int y) OVERRIDE;
81 virtual void HandleEvent(drmEventContext& event) OVERRIDE; 80 virtual void HandleEvent(drmEventContext& event) OVERRIDE;
82 virtual bool CreateDumbBuffer(const SkImageInfo& info, 81 virtual bool CreateDumbBuffer(const SkImageInfo& info,
83 uint32_t* handle, 82 uint32_t* handle,
84 uint32_t* stride, 83 uint32_t* stride,
85 void** pixels) OVERRIDE; 84 void** pixels) OVERRIDE;
86 virtual void DestroyDumbBuffer(const SkImageInfo& info, 85 virtual void DestroyDumbBuffer(const SkImageInfo& info,
87 uint32_t handle, 86 uint32_t handle,
88 uint32_t stride, 87 uint32_t stride,
89 void* pixels) OVERRIDE; 88 void* pixels) OVERRIDE;
90 89
(...skipping 11 matching lines...) Expand all
102 bool create_dumb_buffer_expectation_; 101 bool create_dumb_buffer_expectation_;
103 102
104 std::vector<skia::RefPtr<SkSurface> > buffers_; 103 std::vector<skia::RefPtr<SkSurface> > buffers_;
105 104
106 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); 105 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper);
107 }; 106 };
108 107
109 } // namespace ui 108 } // namespace ui
110 109
111 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 110 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698