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

Side by Side Diff: cc/quads/surface_draw_quad.h

Issue 127373002: Add cc:DrawQuad type for surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update cc_messages_unittests Created 6 years, 11 months 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
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/surface_draw_quad.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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_QUADS_SURFACE_DRAW_QUAD_H_
6 #define CC_QUADS_SURFACE_DRAW_QUAD_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/quads/draw_quad.h"
11
12 namespace cc {
13
14 class CC_EXPORT SurfaceDrawQuad : public DrawQuad {
15 public:
16 static scoped_ptr<SurfaceDrawQuad> Create();
17
18 void SetNew(const SharedQuadState* shared_quad_state,
19 gfx::Rect rect,
20 int surface_id);
21
22 void SetAll(const SharedQuadState* shared_quad_state,
23 gfx::Rect rect,
24 gfx::Rect opaque_rect,
25 gfx::Rect visible_rect,
26 bool needs_blending,
27 int surface_id);
28
29 int surface_id;
30
31 virtual void IterateResources(const ResourceIteratorCallback& callback)
32 OVERRIDE;
33
34 static const SurfaceDrawQuad* MaterialCast(const DrawQuad* quad);
35
36 private:
37 SurfaceDrawQuad();
38 virtual void ExtendValue(base::DictionaryValue* value) const OVERRIDE;
39 };
40
41 } // namespace cc
42
43 #endif // CC_QUADS_SURFACE_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/surface_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698