| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ | 5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ |
| 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ | 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ |
| 7 | 7 |
| 8 #include "gpu/ipc/common/surface_handle.h" | 8 #include "gpu/ipc/common/surface_handle.h" |
| 9 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" | 9 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 void DidCreateOffscreenContext(const GURL& active_url) override; | 22 void DidCreateOffscreenContext(const GURL& active_url) override; |
| 23 void DidDestroyChannel(int client_id) override; | 23 void DidDestroyChannel(int client_id) override; |
| 24 void DidDestroyOffscreenContext(const GURL& active_url) override; | 24 void DidDestroyOffscreenContext(const GURL& active_url) override; |
| 25 void DidLoseContext(bool offscreen, | 25 void DidLoseContext(bool offscreen, |
| 26 gpu::error::ContextLostReason reason, | 26 gpu::error::ContextLostReason reason, |
| 27 const GURL& active_url) override; | 27 const GURL& active_url) override; |
| 28 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override; | 28 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override; |
| 29 void StoreShaderToDisk(int32_t client_id, | 29 void StoreShaderToDisk(int32_t client_id, |
| 30 const std::string& key, | 30 const std::string& key, |
| 31 const std::string& shader) override; | 31 const std::string& shader) override; |
| 32 #if defined(OS_MACOSX) | |
| 33 void SendAcceleratedSurfaceBuffersSwapped( | |
| 34 gpu::SurfaceHandle surface_handle, | |
| 35 CAContextID ca_context_id, | |
| 36 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | |
| 37 const gfx::Size& size, | |
| 38 float scale_factor, | |
| 39 std::vector<ui::LatencyInfo> latency_info) override; | |
| 40 #endif | |
| 41 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 42 void SendAcceleratedSurfaceCreatedChildWindow( | 33 void SendAcceleratedSurfaceCreatedChildWindow( |
| 43 gpu::SurfaceHandle parent_window, | 34 gpu::SurfaceHandle parent_window, |
| 44 gpu::SurfaceHandle child_window) override; | 35 gpu::SurfaceHandle child_window) override; |
| 45 #endif | 36 #endif |
| 46 void SetActiveURL(const GURL& url) override; | 37 void SetActiveURL(const GURL& url) override; |
| 47 | 38 |
| 48 private: | 39 private: |
| 49 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus); | 40 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus); |
| 50 }; | 41 }; |
| 51 | 42 |
| 52 } // namespace mus | 43 } // namespace mus |
| 53 | 44 |
| 54 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ | 45 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ |
| OLD | NEW |