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

Side by Side Diff: remoting/codec/video_decoder_verbatim.h

Issue 17511004: Added the desktop shape fields to VideoPacket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/codec/video_decoder.h ('k') | remoting/codec/video_decoder_verbatim.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ 5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ 6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/codec/video_decoder.h" 10 #include "remoting/codec/video_decoder.h"
(...skipping 14 matching lines...) Expand all
25 virtual void Initialize(const SkISize& screen_size) OVERRIDE; 25 virtual void Initialize(const SkISize& screen_size) OVERRIDE;
26 virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE; 26 virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE;
27 virtual VideoPacketFormat::Encoding Encoding() OVERRIDE; 27 virtual VideoPacketFormat::Encoding Encoding() OVERRIDE;
28 virtual void Invalidate(const SkISize& view_size, 28 virtual void Invalidate(const SkISize& view_size,
29 const SkRegion& region) OVERRIDE; 29 const SkRegion& region) OVERRIDE;
30 virtual void RenderFrame(const SkISize& view_size, 30 virtual void RenderFrame(const SkISize& view_size,
31 const SkIRect& clip_area, 31 const SkIRect& clip_area,
32 uint8* image_buffer, 32 uint8* image_buffer,
33 int image_stride, 33 int image_stride,
34 SkRegion* output_region) OVERRIDE; 34 SkRegion* output_region) OVERRIDE;
35 virtual const SkRegion* GetImageShape() OVERRIDE;
35 36
36 private: 37 private:
37 enum State { 38 enum State {
38 kUninitialized, 39 kUninitialized,
39 kReady, 40 kReady,
40 kProcessing, 41 kProcessing,
41 kPartitionDone, 42 kPartitionDone,
42 kDone, 43 kDone,
43 kError, 44 kError,
44 }; 45 };
(...skipping 21 matching lines...) Expand all
66 67
67 // The bitmap holding the remote screen bits. 68 // The bitmap holding the remote screen bits.
68 scoped_ptr<uint8[]> screen_buffer_; 69 scoped_ptr<uint8[]> screen_buffer_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim); 71 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim);
71 }; 72 };
72 73
73 } // namespace remoting 74 } // namespace remoting
74 75
75 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ 76 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
OLDNEW
« no previous file with comments | « remoting/codec/video_decoder.h ('k') | remoting/codec/video_decoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698