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

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: notvirtual 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
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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 } 354 }
355 355
356 RenderPassId LayerImpl::FirstContributingRenderPassId() const { 356 RenderPassId LayerImpl::FirstContributingRenderPassId() const {
357 return RenderPassId(0, 0); 357 return RenderPassId(0, 0);
358 } 358 }
359 359
360 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { 360 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const {
361 return RenderPassId(0, 0); 361 return RenderPassId(0, 0);
362 } 362 }
363 363
364 bool LayerImpl::UpdateTiles(const Occlusion& occlusion_in_layer_space,
365 bool resourceless_software_draw) {
366 return false;
367 }
368
369 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 364 void LayerImpl::GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
370 gfx::Size* resource_size) const { 365 gfx::Size* resource_size) const {
371 NOTREACHED(); 366 NOTREACHED();
372 *resource_id = 0; 367 *resource_id = 0;
373 } 368 }
374 369
375 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) { 370 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) {
376 RefreshFromScrollDelegate(); 371 RefreshFromScrollDelegate();
377 372
378 gfx::ScrollOffset adjusted_scroll(scroll); 373 gfx::ScrollOffset adjusted_scroll(scroll);
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 SetNeedsPushProperties(); 1567 SetNeedsPushProperties();
1573 layer_tree_impl()->set_needs_update_draw_properties(); 1568 layer_tree_impl()->set_needs_update_draw_properties();
1574 if (should_have_render_surface) { 1569 if (should_have_render_surface) {
1575 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this)); 1570 render_surface_ = make_scoped_ptr(new RenderSurfaceImpl(this));
1576 return; 1571 return;
1577 } 1572 }
1578 render_surface_.reset(); 1573 render_surface_.reset();
1579 } 1574 }
1580 1575
1581 } // namespace cc 1576 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698