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

Side by Side Diff: cc/quads/draw_quad.cc

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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
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 #include "cc/quads/draw_quad.h" 5 #include "cc/quads/draw_quad.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/trace_event/trace_event_argument.h" 8 #include "base/trace_event/trace_event_argument.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 visible_rect_as_target_space_quad, value); 95 visible_rect_as_target_space_quad, value);
96 96
97 value->SetBoolean("visible_rect_is_clipped", visible_rect_is_clipped); 97 value->SetBoolean("visible_rect_is_clipped", visible_rect_is_clipped);
98 98
99 value->SetBoolean("needs_blending", needs_blending); 99 value->SetBoolean("needs_blending", needs_blending);
100 value->SetBoolean("should_draw_with_blending", ShouldDrawWithBlending()); 100 value->SetBoolean("should_draw_with_blending", ShouldDrawWithBlending());
101 ExtendValue(value); 101 ExtendValue(value);
102 } 102 }
103 103
104 DrawQuad::Resources::Resources() : count(0) { 104 DrawQuad::Resources::Resources() : count(0) {
105 for (size_t i = 0; i < kMaxResourceIdCount; ++i) 105 for (size_t i = 0; i < kMaxResourceIdCount; ++i) {
106 ids[i] = 0; 106 ids[i] = 0;
107 allow_overlay[i] = false;
108 }
107 } 109 }
108 110
109 } // namespace cc 111 } // namespace cc
OLDNEW
« cc/quads/draw_quad.h ('K') | « cc/quads/draw_quad.h ('k') | cc/quads/draw_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698