Remove extra line from unit_tests.isolate
[chromium-blink-merge.git] / cc / CCQuadSink.h
blob06d31b0473c46045b8fcff298cc5c04c8025ef2a
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.
5 #ifndef CCQuadSink_h
6 #define CCQuadSink_h
8 #include "base/memory/scoped_ptr.h"
10 namespace cc {
12 class CCDrawQuad;
14 struct CCAppendQuadsData;
15 struct CCSharedQuadState;
17 class CCQuadSink {
18 public:
19 virtual ~CCQuadSink() { }
21 // Call this to add a SharedQuadState before appending quads that refer to it. Returns a pointer
22 // to the given SharedQuadState for convenience, that can be set on the quads to append.
23 virtual CCSharedQuadState* useSharedQuadState(scoped_ptr<CCSharedQuadState>) = 0;
25 // Returns true if the quad is added to the list, and false if the quad is entirely culled.
26 virtual bool append(scoped_ptr<CCDrawQuad> passDrawQuad, CCAppendQuadsData&) = 0;
30 #endif // CCQuadCuller_h