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

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

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Remove TODOs Created 7 years, 7 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 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 : best_texture_format(0), 50 : best_texture_format(0),
51 using_partial_swap(false), 51 using_partial_swap(false),
52 using_accelerated_painting(false), 52 using_accelerated_painting(false),
53 using_set_visibility(false), 53 using_set_visibility(false),
54 using_swap_complete_callback(false), 54 using_swap_complete_callback(false),
55 using_gpu_memory_manager(false), 55 using_gpu_memory_manager(false),
56 using_egl_image(false), 56 using_egl_image(false),
57 allow_partial_texture_updates(false), 57 allow_partial_texture_updates(false),
58 using_offscreen_context3d(false), 58 using_offscreen_context3d(false),
59 max_texture_size(0), 59 max_texture_size(0),
60 avoid_pow2_textures(false) {} 60 avoid_pow2_textures(false),
61 using_map_image(false) {}
61 62
62 RendererCapabilities::~RendererCapabilities() {} 63 RendererCapabilities::~RendererCapabilities() {}
63 64
64 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { 65 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() {
65 return s_num_layer_tree_instances > 0; 66 return s_num_layer_tree_instances > 0;
66 } 67 }
67 68
68 scoped_ptr<LayerTreeHost> LayerTreeHost::Create( 69 scoped_ptr<LayerTreeHost> LayerTreeHost::Create(
69 LayerTreeHostClient* client, 70 LayerTreeHostClient* client,
70 const LayerTreeSettings& settings, 71 const LayerTreeSettings& settings,
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 bool start_ready_animations = true; 1096 bool start_ready_animations = true;
1096 (*iter).second->UpdateState(start_ready_animations, NULL); 1097 (*iter).second->UpdateState(start_ready_animations, NULL);
1097 } 1098 }
1098 } 1099 }
1099 1100
1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1101 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1101 return proxy_->CapturePicture(); 1102 return proxy_->CapturePicture();
1102 } 1103 }
1103 1104
1104 } // namespace cc 1105 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698