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

Unified Diff: remoting/base/decoder_row_based.cc

Issue 7992011: Move us fully from gfx:: over to skia types for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaned up copyrights Created 9 years, 3 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/decoder_row_based.cc
diff --git a/remoting/base/decoder_row_based.cc b/remoting/base/decoder_row_based.cc
index f349272f155b326708bf9f2cdcc25fc7d2a22af4..e264c663201545ab48be1da13bbaf9f34c13e88b 100644
--- a/remoting/base/decoder_row_based.cc
+++ b/remoting/base/decoder_row_based.cc
@@ -88,8 +88,8 @@ Decoder::DecodeResult DecoderRowBased::DecodePacket(const VideoPacket* packet) {
int stride = frame_->stride(media::VideoFrame::kRGBPlane);
uint8* rect_begin = frame_->data(media::VideoFrame::kRGBPlane);
- uint8* out = rect_begin + stride * (clip_.y() + row_y_) +
- kBytesPerPixel * clip_.x();
+ uint8* out = rect_begin + stride * (clip_.fTop + row_y_) +
+ kBytesPerPixel * clip_.fLeft;
// Consume all the data in the message.
bool decompress_again = true;
@@ -151,7 +151,7 @@ void DecoderRowBased::UpdateStateForPacket(const VideoPacket* packet) {
state_ = kProcessing;
// Reset the buffer location status variables on the first packet.
- clip_.SetRect(packet->format().x(), packet->format().y(),
+ clip_.setXYWH(packet->format().x(), packet->format().y(),
packet->format().width(), packet->format().height());
row_pos_ = 0;
row_y_ = 0;
@@ -184,7 +184,7 @@ void DecoderRowBased::UpdateStateForPacket(const VideoPacket* packet) {
return;
}
-void DecoderRowBased::GetUpdatedRects(UpdatedRects* rects) {
+void DecoderRowBased::GetUpdatedRects(RectVector* rects) {
rects->swap(updated_rects_);
updated_rects_.clear();
}

Powered by Google App Engine
This is Rietveld 408576698