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

Side by Side Diff: content/browser/gpu/gpu_process_host_ui_shim.h

Issue 23653049: (not for review) Fix composited-to-non-composited corruption on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host_ui_shim.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
7 7
8 // This class lives on the UI thread and supports classes like the 8 // This class lives on the UI thread and supports classes like the
9 // BackingStoreProxy, which must live on the UI thread. The IO thread 9 // BackingStoreProxy, which must live on the UI thread. The IO thread
10 // portion of this class, the GpuProcessHost, is responsible for 10 // portion of this class, the GpuProcessHost, is responsible for
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // IPC::Listener implementation. 71 // IPC::Listener implementation.
72 // The GpuProcessHost causes this to be called on the UI thread to 72 // The GpuProcessHost causes this to be called on the UI thread to
73 // dispatch the incoming messages from the GPU process, which are 73 // dispatch the incoming messages from the GPU process, which are
74 // actually received on the IO thread. 74 // actually received on the IO thread.
75 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 75 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
76 76
77 CONTENT_EXPORT void SimulateRemoveAllContext(); 77 CONTENT_EXPORT void SimulateRemoveAllContext();
78 CONTENT_EXPORT void SimulateCrash(); 78 CONTENT_EXPORT void SimulateCrash();
79 CONTENT_EXPORT void SimulateHang(); 79 CONTENT_EXPORT void SimulateHang();
80 80
81 #if defined(TOOLKIT_GTK)
82 CONTENT_EXPORT void AcceleratedCompositingStateChange(
83 int32 surface_id, bool compositing_active);
84 #endif
85
81 private: 86 private:
82 explicit GpuProcessHostUIShim(int host_id); 87 explicit GpuProcessHostUIShim(int host_id);
83 virtual ~GpuProcessHostUIShim(); 88 virtual ~GpuProcessHostUIShim();
84 89
85 // Message handlers. 90 // Message handlers.
86 bool OnControlMessageReceived(const IPC::Message& message); 91 bool OnControlMessageReceived(const IPC::Message& message);
87 92
88 void OnLogMessage(int level, const std::string& header, 93 void OnLogMessage(int level, const std::string& header,
89 const std::string& message); 94 const std::string& message);
90 #if defined(TOOLKIT_GTK) || defined(OS_WIN) 95 #if defined(TOOLKIT_GTK) || defined(OS_WIN)
(...skipping 18 matching lines...) Expand all
109 base::TimeDelta interval); 114 base::TimeDelta interval);
110 void OnFrameDrawn(const ui::LatencyInfo& latency_info); 115 void OnFrameDrawn(const ui::LatencyInfo& latency_info);
111 116
112 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 117 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
113 int host_id_; 118 int host_id_;
114 }; 119 };
115 120
116 } // namespace content 121 } // namespace content
117 122
118 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 123 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698