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

Unified Diff: cc/test/fake_mask_layer_impl.h

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl::draw_transform() Created 5 years, 1 month 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
Index: cc/test/fake_mask_layer_impl.h
diff --git a/cc/test/fake_mask_layer_impl.h b/cc/test/fake_mask_layer_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f3166a1e9c278df8e8bca84fe269c805e79cb0d
--- /dev/null
+++ b/cc/test/fake_mask_layer_impl.h
@@ -0,0 +1,25 @@
+// Copyright 2015 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_MASK_LAYER_IMPL_H_
+#define CC_TEST_FAKE_MASK_LAYER_IMPL_H_
+
+#include "cc/layers/layer_impl.h"
+
+namespace cc {
+
+class FakeMaskLayerImpl : public LayerImpl {
+ public:
+ static scoped_ptr<FakeMaskLayerImpl> Create(LayerTreeImpl* tree_impl, int id);
+
+ void GetContentsResourceId(ResourceId* resource_id,
+ gfx::Size* resource_size) const override;
+
+ private:
+ FakeMaskLayerImpl(LayerTreeImpl* tree_impl, int id);
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_MASK_LAYER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698