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

Side by Side Diff: cc/output/software_output_device.h

Issue 13248003: Pass a sequence number along with the DIB handle when compositing in software. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « cc/output/software_frame_data.cc ('k') | cc/output/software_output_device.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ 5 #ifndef CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
6 #define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ 6 #define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "skia/ext/refptr.h" 10 #include "skia/ext/refptr.h"
(...skipping 21 matching lines...) Expand all
32 virtual void Resize(gfx::Size size); 32 virtual void Resize(gfx::Size size);
33 33
34 virtual SkCanvas* BeginPaint(gfx::Rect damage_rect); 34 virtual SkCanvas* BeginPaint(gfx::Rect damage_rect);
35 virtual void EndPaint(SoftwareFrameData* frame_data); 35 virtual void EndPaint(SoftwareFrameData* frame_data);
36 36
37 virtual void CopyToBitmap(gfx::Rect rect, SkBitmap* output); 37 virtual void CopyToBitmap(gfx::Rect rect, SkBitmap* output);
38 virtual void Scroll(gfx::Vector2d delta, 38 virtual void Scroll(gfx::Vector2d delta,
39 gfx::Rect clip_rect); 39 gfx::Rect clip_rect);
40 40
41 // TODO(skaslev) Remove this after UberCompositor lands. 41 // TODO(skaslev) Remove this after UberCompositor lands.
42 virtual void ReclaimDIB(TransportDIB::Handle handle); 42 virtual void ReclaimDIB(const TransportDIB::Id& id);
43 43
44 protected: 44 protected:
45 gfx::Size viewport_size_; 45 gfx::Size viewport_size_;
46 gfx::Rect damage_rect_; 46 gfx::Rect damage_rect_;
47 skia::RefPtr<SkDevice> device_; 47 skia::RefPtr<SkDevice> device_;
48 skia::RefPtr<SkCanvas> canvas_; 48 skia::RefPtr<SkCanvas> canvas_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice); 50 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice);
51 }; 51 };
52 52
53 } // namespace cc 53 } // namespace cc
54 54
55 #endif // CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ 55 #endif // CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
OLDNEW
« no previous file with comments | « cc/output/software_frame_data.cc ('k') | cc/output/software_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698