Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_DRI_GPU_PLATFORM_SUPPORT_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 ~DriGpuPlatformSupport() override; | 38 ~DriGpuPlatformSupport() override; |
| 39 | 39 |
| 40 void AddHandler(scoped_ptr<GpuPlatformSupport> handler); | 40 void AddHandler(scoped_ptr<GpuPlatformSupport> handler); |
| 41 | 41 |
| 42 // GpuPlatformSupport: | 42 // GpuPlatformSupport: |
| 43 void OnChannelEstablished(IPC::Sender* sender) override; | 43 void OnChannelEstablished(IPC::Sender* sender) override; |
| 44 | 44 |
| 45 // IPC::Listener: | 45 // IPC::Listener: |
| 46 bool OnMessageReceived(const IPC::Message& message) override; | 46 bool OnMessageReceived(const IPC::Message& message) override; |
| 47 | 47 |
| 48 virtual void RelinquishGpuResources(const base::Closure& callback) override; | |
|
dcheng
2014/11/21 03:06:04
No virtual. Also, this should probably be grouped
GusFernandez
2014/11/21 19:13:57
Done.
| |
| 49 | |
| 48 private: | 50 private: |
| 49 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); | 51 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); |
| 50 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); | 52 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); |
| 51 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, | 53 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, |
| 52 const gfx::Rect& bounds); | 54 const gfx::Rect& bounds); |
| 53 void OnCursorSet(gfx::AcceleratedWidget widget, | 55 void OnCursorSet(gfx::AcceleratedWidget widget, |
| 54 const std::vector<SkBitmap>& bitmaps, | 56 const std::vector<SkBitmap>& bitmaps, |
| 55 const gfx::Point& location, | 57 const gfx::Point& location, |
| 56 int frame_delay_ms); | 58 int frame_delay_ms); |
| 57 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location); | 59 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location); |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 72 DriWindowDelegateManager* window_manager_; // Not owned. | 74 DriWindowDelegateManager* window_manager_; // Not owned. |
| 73 ScreenManager* screen_manager_; // Not owned. | 75 ScreenManager* screen_manager_; // Not owned. |
| 74 | 76 |
| 75 scoped_ptr<NativeDisplayDelegateDri> ndd_; | 77 scoped_ptr<NativeDisplayDelegateDri> ndd_; |
| 76 ScopedVector<GpuPlatformSupport> handlers_; | 78 ScopedVector<GpuPlatformSupport> handlers_; |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace ui | 81 } // namespace ui |
| 80 | 82 |
| 81 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 83 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
| OLD | NEW |