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

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

Issue 59973010: Android: Don't instantiate TextureImageTransportSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual void SetLatencyInfo( 198 virtual void SetLatencyInfo(
199 const ui::LatencyInfo& latency_info) OVERRIDE; 199 const ui::LatencyInfo& latency_info) OVERRIDE;
200 200
201 protected: 201 protected:
202 virtual ~PassThroughImageTransportSurface(); 202 virtual ~PassThroughImageTransportSurface();
203 203
204 // If updated vsync parameters can be determined, send this information to 204 // If updated vsync parameters can be determined, send this information to
205 // the browser. 205 // the browser.
206 virtual void SendVSyncUpdateIfAvailable(); 206 virtual void SendVSyncUpdateIfAvailable();
207 207
208 ImageTransportHelper* GetHelper() { return helper_.get(); }
209
208 private: 210 private:
209 scoped_ptr<ImageTransportHelper> helper_; 211 scoped_ptr<ImageTransportHelper> helper_;
210 gfx::Size new_size_; 212 gfx::Size new_size_;
211 bool transport_; 213 bool transport_;
212 bool did_set_swap_interval_; 214 bool did_set_swap_interval_;
213 bool did_unschedule_; 215 bool did_unschedule_;
214 bool is_swap_buffers_pending_; 216 bool is_swap_buffers_pending_;
215 ui::LatencyInfo latency_info_; 217 ui::LatencyInfo latency_info_;
216 218
217 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 219 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
218 }; 220 };
219 221
220 } // namespace content 222 } // namespace content
221 223
222 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 224 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698