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

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

Issue 8498036: Delay UpdateRect until the SwapBuffers callback when accelerated compositing is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: allow multiple update messages in flight Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 PassThroughImageTransportSurface(GpuChannelManager* manager, 149 PassThroughImageTransportSurface(GpuChannelManager* manager,
150 int32 render_view_id, 150 int32 render_view_id,
151 int32 renderer_id, 151 int32 renderer_id,
152 int32 command_buffer_id, 152 int32 command_buffer_id,
153 gfx::GLSurface* surface); 153 gfx::GLSurface* surface);
154 virtual ~PassThroughImageTransportSurface(); 154 virtual ~PassThroughImageTransportSurface();
155 155
156 // GLSurface implementation. 156 // GLSurface implementation.
157 virtual bool Initialize() OVERRIDE; 157 virtual bool Initialize() OVERRIDE;
158 virtual void Destroy() OVERRIDE; 158 virtual void Destroy() OVERRIDE;
159 virtual bool SwapBuffers() OVERRIDE;
160 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
159 161
160 // ImageTransportSurface implementation. 162 // ImageTransportSurface implementation.
161 virtual void OnNewSurfaceACK( 163 virtual void OnNewSurfaceACK(
162 uint64 surface_id, TransportDIB::Handle surface_handle) OVERRIDE; 164 uint64 surface_id, TransportDIB::Handle surface_handle) OVERRIDE;
163 virtual void OnBuffersSwappedACK() OVERRIDE; 165 virtual void OnBuffersSwappedACK() OVERRIDE;
164 virtual void OnPostSubBufferACK() OVERRIDE; 166 virtual void OnPostSubBufferACK() OVERRIDE;
165 virtual void OnResizeViewACK() OVERRIDE; 167 virtual void OnResizeViewACK() OVERRIDE;
166 virtual void OnResize(gfx::Size size) OVERRIDE; 168 virtual void OnResize(gfx::Size size) OVERRIDE;
167 169
168 private: 170 private:
169 scoped_ptr<ImageTransportHelper> helper_; 171 scoped_ptr<ImageTransportHelper> helper_;
170 172
171 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 173 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
172 }; 174 };
173 175
174 #endif // defined(ENABLE_GPU) 176 #endif // defined(ENABLE_GPU)
175 177
176 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 178 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698