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

Unified Diff: remoting/base/encoder_row_based.h

Issue 7491070: Switch over to using SkRegions to calculate dirty areas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up comments Created 9 years, 4 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: remoting/base/encoder_row_based.h
diff --git a/remoting/base/encoder_row_based.h b/remoting/base/encoder_row_based.h
index d453ffb6b8f13f833035cbfdcffe94d77788292b..ab910ea1c5ee29ad2d2682f0c51ca9472cac8bfb 100644
--- a/remoting/base/encoder_row_based.h
+++ b/remoting/base/encoder_row_based.h
@@ -7,8 +7,8 @@
#include "remoting/base/encoder.h"
#include "remoting/proto/video.pb.h"
-
-#include "ui/gfx/rect.h"
+#include "third_party/skia/include/core/SkRect.h"
+#include "ui/gfx/size.h"
namespace remoting {
@@ -41,10 +41,10 @@ class EncoderRowBased : public Encoder {
int packet_size);
// Encode a single dirty rect using compressor.
- void EncodeRect(const gfx::Rect& rect, bool last);
+ void EncodeRect(const SkIRect& rect, bool last);
// Marks a packet as the first in a series of rectangle updates.
- void PrepareUpdateStart(const gfx::Rect& rect, VideoPacket* packet);
+ void PrepareUpdateStart(const SkIRect& rect, VideoPacket* packet);
// Retrieves a pointer to the output buffer in |update| used for storing the
// encoded rectangle data. Will resize the buffer to |size|.

Powered by Google App Engine
This is Rietveld 408576698