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

Unified Diff: content/common/gpu/image_transport_surface.h

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming messages. Updated the other platforms. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/image_transport_surface.h
diff --git a/content/common/gpu/image_transport_surface.h b/content/common/gpu/image_transport_surface.h
index 9e1a05cfc42d61ba29b150ecebdd50477b83cadd..8e5f38a77efe87b94cd1f72cc248e2be2ac2057a 100644
--- a/content/common/gpu/image_transport_surface.h
+++ b/content/common/gpu/image_transport_surface.h
@@ -30,6 +30,7 @@ struct GpuHostMsg_AcceleratedSurfaceNew_Params;
struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
struct GpuHostMsg_AcceleratedSurfaceRelease_Params;
+struct GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params;
namespace gfx {
class GLSurface;
@@ -67,6 +68,7 @@ class ImageTransportSurface {
virtual void OnPostSubBufferACK() = 0;
virtual void OnResizeViewACK() = 0;
virtual void OnResize(gfx::Size size) = 0;
+ virtual void OnDiscardSurface(uint64 surface_id) = 0;
// Creates the appropriate surface depending on the GL implementation.
static scoped_refptr<gfx::GLSurface>
@@ -109,6 +111,8 @@ class ImageTransportHelper : public IPC::Channel::Listener {
GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params params);
void SendAcceleratedSurfaceRelease(
GpuHostMsg_AcceleratedSurfaceRelease_Params params);
+ void SendAcceleratedSurfaceSuggestDiscard(
+ GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params params);
void SendResizeView(const gfx::Size& size);
// Whether or not we should execute more commands.
@@ -133,6 +137,7 @@ class ImageTransportHelper : public IPC::Channel::Listener {
void OnBuffersSwappedACK();
void OnPostSubBufferACK();
void OnResizeViewACK();
+ void OnDiscardSurface(uint64 surface_id);
// Backbuffer resize callback.
void Resize(gfx::Size size);
@@ -173,6 +178,7 @@ class PassThroughImageTransportSurface
virtual void OnPostSubBufferACK() OVERRIDE;
virtual void OnResizeViewACK() OVERRIDE;
virtual void OnResize(gfx::Size size) OVERRIDE;
+ virtual void OnDiscardSurface(uint64 surface_id) OVERRIDE;
protected:
virtual ~PassThroughImageTransportSurface();

Powered by Google App Engine
This is Rietveld 408576698