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

Side by Side Diff: cc/test/fake_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: mynits 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
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_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_
6 #define CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_
7
8 #include <public/WebImage.h>
jamesr 2012/12/04 07:06:51 "third_party/WebKit..."
9
10 #include "base/logging.h"
11 #include "cc/software_output_device.h"
12 #include "skia/ext/refptr.h"
13 #include "third_party/skia/include/core/SkDevice.h"
14
15 namespace cc {
16
17 class FakeSoftwareOutputDevice : public SoftwareOutputDevice {
18 public:
19 FakeSoftwareOutputDevice();
20 virtual ~FakeSoftwareOutputDevice();
21
22 virtual WebKit::WebImage* Lock(bool forWrite) OVERRIDE;
23 virtual void Unlock() OVERRIDE;
24
25 virtual void DidChangeViewportSize(gfx::Size size) OVERRIDE;
26
27 private:
28 skia::RefPtr<SkDevice> device_;
29 WebKit::WebImage image_;
30 };
31
32 } // namespace cc
33
34 #endif // CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698