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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/fake_software_output_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_software_output_device.h
diff --git a/cc/test/fake_software_output_device.h b/cc/test/fake_software_output_device.h
new file mode 100644
index 0000000000000000000000000000000000000000..0ee28a3be891911c734198e3a94829a18fda3b56
--- /dev/null
+++ b/cc/test/fake_software_output_device.h
@@ -0,0 +1,33 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_
+#define CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_
+
+#include "base/logging.h"
+#include "cc/software_output_device.h"
+#include "skia/ext/refptr.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
+#include "third_party/skia/include/core/SkDevice.h"
+
+namespace cc {
+
+class FakeSoftwareOutputDevice : public SoftwareOutputDevice {
+ public:
+ FakeSoftwareOutputDevice();
+ virtual ~FakeSoftwareOutputDevice();
+
+ virtual WebKit::WebImage* Lock(bool forWrite) OVERRIDE;
+ virtual void Unlock() OVERRIDE;
+
+ virtual void DidChangeViewportSize(gfx::Size size) OVERRIDE;
+
+ private:
+ skia::RefPtr<SkDevice> device_;
+ WebKit::WebImage image_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/fake_software_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698