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

Side by Side Diff: cc/layers/texture_layer_impl.cc

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase Created 4 years, 4 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
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/output/delegating_renderer.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/layers/texture_layer_impl.h" 5 #include "cc/layers/texture_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "cc/output/output_surface.h" 13 #include "cc/output/output_surface.h"
14 #include "cc/output/renderer.h"
15 #include "cc/quads/solid_color_draw_quad.h" 14 #include "cc/quads/solid_color_draw_quad.h"
16 #include "cc/quads/texture_draw_quad.h" 15 #include "cc/quads/texture_draw_quad.h"
17 #include "cc/resources/platform_color.h" 16 #include "cc/resources/platform_color.h"
18 #include "cc/resources/scoped_resource.h" 17 #include "cc/resources/scoped_resource.h"
19 #include "cc/resources/single_release_callback_impl.h" 18 #include "cc/resources/single_release_callback_impl.h"
20 #include "cc/trees/layer_tree_impl.h" 19 #include "cc/trees/layer_tree_impl.h"
21 #include "cc/trees/occlusion.h" 20 #include "cc/trees/occlusion.h"
22 21
23 namespace cc { 22 namespace cc {
24 23
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 } else if (external_texture_resource_) { 259 } else if (external_texture_resource_) {
261 DCHECK(!own_mailbox_); 260 DCHECK(!own_mailbox_);
262 ResourceProvider* resource_provider = 261 ResourceProvider* resource_provider =
263 layer_tree_impl()->resource_provider(); 262 layer_tree_impl()->resource_provider();
264 resource_provider->DeleteResource(external_texture_resource_); 263 resource_provider->DeleteResource(external_texture_resource_);
265 external_texture_resource_ = 0; 264 external_texture_resource_ = 0;
266 } 265 }
267 } 266 }
268 267
269 } // namespace cc 268 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/output/delegating_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698