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

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

Issue 915083004: cc: Make occlusion a draw property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: occlusiondrawproperty: earlyoutloop Created 5 years, 10 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/layer_impl.h ('k') | cc/layers/picture_layer_impl.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 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/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "base/trace_event/trace_event_argument.h" 10 #include "base/trace_event/trace_event_argument.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 372
373 RenderPassId LayerImpl::FirstContributingRenderPassId() const { 373 RenderPassId LayerImpl::FirstContributingRenderPassId() const {
374 return RenderPassId(0, 0); 374 return RenderPassId(0, 0);
375 } 375 }
376 376
377 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { 377 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const {
378 return RenderPassId(0, 0); 378 return RenderPassId(0, 0);
379 } 379 }
380 380
381 bool LayerImpl::UpdateTiles(const Occlusion& occlusion_in_layer_space,
382 bool resourceless_software_draw) {
383 return false;
384 }
385
386 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 381 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
387 gfx::Size* resource_size) const { 382 gfx::Size* resource_size) const {
388 NOTREACHED(); 383 NOTREACHED();
389 *resource_id = 0; 384 *resource_id = 0;
390 } 385 }
391 386
392 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) { 387 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) {
393 RefreshFromScrollDelegate(); 388 RefreshFromScrollDelegate();
394 389
395 gfx::ScrollOffset adjusted_scroll(scroll); 390 gfx::ScrollOffset adjusted_scroll(scroll);
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 SetNeedsPushProperties(); 1584 SetNeedsPushProperties();
1590 layer_tree_impl()->set_needs_update_draw_properties(); 1585 layer_tree_impl()->set_needs_update_draw_properties();
1591 if (should_have_render_surface) { 1586 if (should_have_render_surface) {
1592 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); 1587 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this));
1593 return; 1588 return;
1594 } 1589 }
1595 render_surface_.reset(); 1590 render_surface_.reset();
1596 } 1591 }
1597 1592
1598 } // namespace cc 1593 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698