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

Side by Side Diff: cc/tile_manager.cc

Issue 11466032: cc: Fix impl-side painting rasterization at >1 contents scales (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « cc/tile.cc ('k') | no next file » | 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/tile_manager.h" 5 #include "cc/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 ResourceProvider::ResourceId resource_id = resource->id(); 407 ResourceProvider::ResourceId resource_id = resource->id();
408 scoped_refptr<PicturePileImpl> picture_pile_clone = 408 scoped_refptr<PicturePileImpl> picture_pile_clone =
409 tile->picture_pile()->GetCloneForDrawingOnThread(thread); 409 tile->picture_pile()->GetCloneForDrawingOnThread(thread);
410 RenderingStats* stats = new RenderingStats(); 410 RenderingStats* stats = new RenderingStats();
411 411
412 thread->PostRasterTaskAndReply( 412 thread->PostRasterTaskAndReply(
413 FROM_HERE, 413 FROM_HERE,
414 picture_pile_clone.get(), 414 picture_pile_clone.get(),
415 resource_pool_->resource_provider()->mapPixelBuffer(resource_id), 415 resource_pool_->resource_provider()->mapPixelBuffer(resource_id),
416 tile->rect_inside_picture_, 416 tile->content_rect_,
417 tile->contents_scale(), 417 tile->contents_scale(),
418 stats, 418 stats,
419 base::Bind(&TileManager::OnRasterTaskCompleted, 419 base::Bind(&TileManager::OnRasterTaskCompleted,
420 base::Unretained(this), 420 base::Unretained(this),
421 tile, 421 tile,
422 base::Passed(&resource), 422 base::Passed(&resource),
423 picture_pile_clone, 423 picture_pile_clone,
424 stats)); 424 stats));
425 } 425 }
426 426
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 475 }
476 476
477 void TileManager::DidFinishTileInitialization(Tile* tile) { 477 void TileManager::DidFinishTileInitialization(Tile* tile) {
478 ManagedTileState& managed_tile_state = tile->managed_state(); 478 ManagedTileState& managed_tile_state = tile->managed_state();
479 DCHECK(managed_tile_state.resource); 479 DCHECK(managed_tile_state.resource);
480 managed_tile_state.resource_is_being_initialized = false; 480 managed_tile_state.resource_is_being_initialized = false;
481 managed_tile_state.can_be_freed = true; 481 managed_tile_state.can_be_freed = true;
482 } 482 }
483 483
484 } 484 }
OLDNEW
« no previous file with comments | « cc/tile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698