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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 23601013: cc: Invalidate framebuffer contents when clearing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 RendererCapabilities::RendererCapabilities() 49 RendererCapabilities::RendererCapabilities()
50 : best_texture_format(0), 50 : best_texture_format(0),
51 using_partial_swap(false), 51 using_partial_swap(false),
52 using_set_visibility(false), 52 using_set_visibility(false),
53 using_egl_image(false), 53 using_egl_image(false),
54 allow_partial_texture_updates(false), 54 allow_partial_texture_updates(false),
55 using_offscreen_context3d(false), 55 using_offscreen_context3d(false),
56 max_texture_size(0), 56 max_texture_size(0),
57 avoid_pow2_textures(false), 57 avoid_pow2_textures(false),
58 using_map_image(false), 58 using_map_image(false),
59 using_shared_memory_resources(false) {} 59 using_shared_memory_resources(false),
60 using_discard_framebuffer(false) {}
60 61
61 RendererCapabilities::~RendererCapabilities() {} 62 RendererCapabilities::~RendererCapabilities() {}
62 63
63 UIResourceRequest::UIResourceRequest() 64 UIResourceRequest::UIResourceRequest()
64 : type(UIResourceInvalidRequest), id(0), bitmap(NULL) {} 65 : type(UIResourceInvalidRequest), id(0), bitmap(NULL) {}
65 66
66 UIResourceRequest::~UIResourceRequest() {} 67 UIResourceRequest::~UIResourceRequest() {}
67 68
68 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { 69 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() {
69 return s_num_layer_tree_instances > 0; 70 return s_num_layer_tree_instances > 0;
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 void LayerTreeHost::DidLoseUIResources() { 1168 void LayerTreeHost::DidLoseUIResources() {
1168 // When output surface is lost, we need to recreate the resource. 1169 // When output surface is lost, we need to recreate the resource.
1169 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); 1170 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin();
1170 iter != ui_resource_client_map_.end(); 1171 iter != ui_resource_client_map_.end();
1171 ++iter) { 1172 ++iter) {
1172 UIResourceLost(iter->first); 1173 UIResourceLost(iter->first);
1173 } 1174 }
1174 } 1175 }
1175 1176
1176 } // namespace cc 1177 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698