Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 "ui/gfx/size.h" | |
| 9 #include <public/WebImage.h> | |
|
jamesr
2012/12/04 07:06:51
do
#include "third_party/WebKit/Source/Platform/c
danakj
2012/12/04 18:15:34
Oh, I was trying to avoid adding things to DEPS. S
| |
| 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_ | |
| OLD | NEW |