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

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

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/quads/shared_quad_state.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_QUADS_TEXTURE_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_TEXTURE_DRAW_QUAD_H_
6 #define CC_QUADS_TEXTURE_DRAW_QUAD_H_ 6 #define CC_QUADS_TEXTURE_DRAW_QUAD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
13 #include "cc/quads/draw_quad.h" 13 #include "cc/quads/draw_quad.h"
14 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/geometry/rect_f.h" 15 #include "ui/gfx/geometry/rect_f.h"
15 16
16 namespace cc { 17 namespace cc {
17 18
18 class CC_EXPORT TextureDrawQuad : public DrawQuad { 19 class CC_EXPORT TextureDrawQuad : public DrawQuad {
19 public: 20 public:
20 static const size_t kResourceIdIndex = 0; 21 static const size_t kResourceIdIndex = 0;
21 22
22 TextureDrawQuad(); 23 TextureDrawQuad();
23 TextureDrawQuad(const TextureDrawQuad& other); 24 TextureDrawQuad(const TextureDrawQuad& other);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 79
79 static const TextureDrawQuad* MaterialCast(const DrawQuad*); 80 static const TextureDrawQuad* MaterialCast(const DrawQuad*);
80 81
81 private: 82 private:
82 void ExtendValue(base::trace_event::TracedValue* value) const override; 83 void ExtendValue(base::trace_event::TracedValue* value) const override;
83 }; 84 };
84 85
85 } // namespace cc 86 } // namespace cc
86 87
87 #endif // CC_QUADS_TEXTURE_DRAW_QUAD_H_ 88 #endif // CC_QUADS_TEXTURE_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/shared_quad_state.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698