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

Side by Side Diff: cc/software_output_device.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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/scrollbar_layer_unittest.cc ('k') | cc/software_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_SOFTWARE_OUTPUT_DEVICE_H_
6 #define CC_SOFTWARE_OUTPUT_DEVICE_H_
7
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
9 #include "ui/gfx/size.h"
10
11 namespace cc {
12
13 // This is a "tear-off" class providing software drawing support to
14 // OutputSurface, such as to a platform-provided window framebuffer.
15 class SoftwareOutputDevice {
16 public:
17 virtual ~SoftwareOutputDevice() {}
18
19 // Lock the framebuffer and return a pointer to a WebImage referring to its
20 // pixels. Set forWrite if you intend to change the pixels. Readback
21 // is supported whether or not forWrite is set.
22 // TODO(danakj): Switch this from WebImage to a Skia type.
23 virtual WebKit::WebImage* Lock(bool forWrite) = 0;
24 virtual void Unlock() = 0;
25
26 virtual void DidChangeViewportSize(gfx::Size) = 0;
27 };
28
29 } // namespace cc
30
31 #endif // CC_SOFTWARE_OUTPUT_DEVICE_H_
OLDNEW
« no previous file with comments | « cc/scrollbar_layer_unittest.cc ('k') | cc/software_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698