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

Side by Side Diff: content/common/gpu/image_transport_surface.h

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send vsync timebase updates to the browser compositor Created 8 years, 2 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
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_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // ImageTransportSurface implementation. 178 // ImageTransportSurface implementation.
179 virtual void OnBufferPresented(uint32 sync_point) OVERRIDE; 179 virtual void OnBufferPresented(uint32 sync_point) OVERRIDE;
180 virtual void OnResizeViewACK() OVERRIDE; 180 virtual void OnResizeViewACK() OVERRIDE;
181 virtual void OnResize(gfx::Size size) OVERRIDE; 181 virtual void OnResize(gfx::Size size) OVERRIDE;
182 virtual gfx::Size GetSize() OVERRIDE; 182 virtual gfx::Size GetSize() OVERRIDE;
183 183
184 protected: 184 protected:
185 virtual ~PassThroughImageTransportSurface(); 185 virtual ~PassThroughImageTransportSurface();
186 186
187 // If the time of the most recent screen refresh can be determined, send
188 // this information to the browser.
189 virtual void SendVSyncUpdateIfAvailable();
190
187 private: 191 private:
188 scoped_ptr<ImageTransportHelper> helper_; 192 scoped_ptr<ImageTransportHelper> helper_;
189 gfx::Size new_size_; 193 gfx::Size new_size_;
190 bool transport_; 194 bool transport_;
191 bool did_set_swap_interval_; 195 bool did_set_swap_interval_;
192 196
193 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 197 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
194 }; 198 };
195 199
196 #endif // defined(ENABLE_GPU) 200 #endif // defined(ENABLE_GPU)
197 201
198 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 202 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698