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

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

Issue 797843005: Add support to delay sending SwapbufferAck as needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use WeakptrFactory Created 6 years 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 | content/common/gpu/image_transport_surface.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_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 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void SetLatencyInfo( 193 void SetLatencyInfo(
194 const std::vector<ui::LatencyInfo>& latency_info) override; 194 const std::vector<ui::LatencyInfo>& latency_info) override;
195 void WakeUpGpu() override; 195 void WakeUpGpu() override;
196 196
197 protected: 197 protected:
198 ~PassThroughImageTransportSurface() override; 198 ~PassThroughImageTransportSurface() override;
199 199
200 // If updated vsync parameters can be determined, send this information to 200 // If updated vsync parameters can be determined, send this information to
201 // the browser. 201 // the browser.
202 virtual void SendVSyncUpdateIfAvailable(); 202 virtual void SendVSyncUpdateIfAvailable();
203 void SwapBuffersCallBack();
203 204
204 ImageTransportHelper* GetHelper() { return helper_.get(); } 205 ImageTransportHelper* GetHelper() { return helper_.get(); }
205 206
206 private: 207 private:
207 scoped_ptr<ImageTransportHelper> helper_; 208 scoped_ptr<ImageTransportHelper> helper_;
208 bool did_set_swap_interval_; 209 bool did_set_swap_interval_;
209 std::vector<ui::LatencyInfo> latency_info_; 210 std::vector<ui::LatencyInfo> latency_info_;
211 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_;
210 212
211 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 213 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
212 }; 214 };
213 215
214 } // namespace content 216 } // namespace content
215 217
216 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 218 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698