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

Side by Side Diff: components/mus/gpu/gpu_service_mus.h

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 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 | « no previous file | components/mus/gpu/gpu_service_mus.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698