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

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: Add internalformat parameter to CreateImageCHROMIUM in fake_web_graphics_context_3d to fix clang bu… 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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.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 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 : best_texture_format(0), 47 : best_texture_format(0),
48 using_partial_swap(false), 48 using_partial_swap(false),
49 using_accelerated_painting(false), 49 using_accelerated_painting(false),
50 using_set_visibility(false), 50 using_set_visibility(false),
51 using_swap_complete_callback(false), 51 using_swap_complete_callback(false),
52 using_gpu_memory_manager(false), 52 using_gpu_memory_manager(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 59
59 RendererCapabilities::~RendererCapabilities() {} 60 RendererCapabilities::~RendererCapabilities() {}
60 61
61 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { 62 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() {
62 return s_num_layer_tree_instances > 0; 63 return s_num_layer_tree_instances > 0;
63 } 64 }
64 65
65 scoped_ptr<LayerTreeHost> LayerTreeHost::Create( 66 scoped_ptr<LayerTreeHost> LayerTreeHost::Create(
66 LayerTreeHostClient* client, 67 LayerTreeHostClient* client,
67 const LayerTreeSettings& settings, 68 const LayerTreeSettings& settings,
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 bool start_ready_animations = true; 1018 bool start_ready_animations = true;
1018 (*iter).second->UpdateState(start_ready_animations, NULL); 1019 (*iter).second->UpdateState(start_ready_animations, NULL);
1019 } 1020 }
1020 } 1021 }
1021 1022
1022 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1023 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1023 return proxy_->CapturePicture(); 1024 return proxy_->CapturePicture();
1024 } 1025 }
1025 1026
1026 } // namespace cc 1027 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698