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

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

Issue 9564008: Aura: PostSubBuffer implementation for --ui-use-gpu-process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 10 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
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bd96a760f88d7e86ef860a0dbd758895b4635b17..b2d27d47d440d0f03dfb2d103f2d70366a2265a5 100644
--- a/content/common/gpu/image_transport_surface.h
+++ b/content/common/gpu/image_transport_surface.h
@@ -8,6 +8,8 @@
#if defined(ENABLE_GPU)
+#include <vector>
+
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
@@ -16,8 +18,9 @@
#include "ipc/ipc_channel.h"
#include "ipc/ipc_message.h"
#include "ui/gfx/gl/gl_surface.h"
-#include "ui/gfx/size.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/rect.h"
+#include "ui/gfx/size.h"
#include "ui/gfx/surface/transport_dib.h"
class GpuChannelManager;
@@ -70,6 +73,13 @@ class ImageTransportSurface {
CreateSurface(GpuChannelManager* manager,
GpuCommandBufferStub* stub,
const gfx::GLSurfaceHandle& handle);
+ protected:
+ // Used by certain implements of PostSubBuffer to determine
+ // how much needs to be copied between frames.
+ void GetRegionsToCopy(const gfx::Rect& previous_damage_rect,
+ const gfx::Rect& new_damage_rect,
+ std::vector<gfx::Rect>* regions);
+
private:
DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface);
};
« 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