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

Side by Side Diff: content/browser/aura/browser_compositor_output_surface_proxy.h

Issue 57883007: Adding support for VSyncProvider to the software drawing path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use BrowserCompositorOutputSurface as base class Created 7 years, 1 month 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_BROWSER_AURA_BROWSER_COMPOSITOR_OUTPUT_SURFACE_PROXY_H_ 5 #ifndef CONTENT_BROWSER_AURA_BROWSER_COMPOSITOR_OUTPUT_SURFACE_PROXY_H_
6 #define CONTENT_BROWSER_AURA_BROWSER_COMPOSITOR_OUTPUT_SURFACE_PROXY_H_ 6 #define CONTENT_BROWSER_AURA_BROWSER_COMPOSITOR_OUTPUT_SURFACE_PROXY_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 12 matching lines...) Expand all
23 BrowserCompositorOutputSurfaceProxy( 23 BrowserCompositorOutputSurfaceProxy(
24 IDMap<BrowserCompositorOutputSurface>* surface_map); 24 IDMap<BrowserCompositorOutputSurface>* surface_map);
25 25
26 // Call this before each OutputSurface is created to ensure that the 26 // Call this before each OutputSurface is created to ensure that the
27 // proxy is connected to the current host. 27 // proxy is connected to the current host.
28 void ConnectToGpuProcessHost( 28 void ConnectToGpuProcessHost(
29 base::SingleThreadTaskRunner* compositor_thread_task_runner); 29 base::SingleThreadTaskRunner* compositor_thread_task_runner);
30 30
31 private: 31 private:
32 friend class base::RefCountedThreadSafe<BrowserCompositorOutputSurfaceProxy>; 32 friend class base::RefCountedThreadSafe<BrowserCompositorOutputSurfaceProxy>;
33 friend class SoftwareBrowserCompositorOutputSurface;
33 ~BrowserCompositorOutputSurfaceProxy(); 34 ~BrowserCompositorOutputSurfaceProxy();
34 35
35 void OnMessageReceivedOnCompositorThread(const IPC::Message& message); 36 void OnMessageReceivedOnCompositorThread(const IPC::Message& message);
36 37
37 void OnUpdateVSyncParametersOnCompositorThread(int surface_id, 38 void OnUpdateVSyncParametersOnCompositorThread(int surface_id,
38 base::TimeTicks timebase, 39 base::TimeTicks timebase,
39 base::TimeDelta interval); 40 base::TimeDelta interval);
40 41
41 IDMap<BrowserCompositorOutputSurface>* surface_map_; 42 IDMap<BrowserCompositorOutputSurface>* surface_map_;
42 int connected_to_gpu_process_host_id_; 43 int connected_to_gpu_process_host_id_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurfaceProxy); 45 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurfaceProxy);
45 }; 46 };
46 47
47 } // namespace content 48 } // namespace content
48 49
49 #endif // CONTENT_BROWSER_AURA_BROWSER_COMPOSITOR_OUTPUT_SURFACE_PROXY_H_ 50 #endif // CONTENT_BROWSER_AURA_BROWSER_COMPOSITOR_OUTPUT_SURFACE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698