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

Unified Diff: cc/tile.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile.cc
diff --git a/cc/tile.cc b/cc/tile.cc
deleted file mode 100644
index d39aeea44d0440b8b0c73a5908ff0f8ecc91c9b2..0000000000000000000000000000000000000000
--- a/cc/tile.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/tile.h"
-
-#include "base/stringprintf.h"
-#include "cc/tile_manager.h"
-#include "third_party/khronos/GLES2/gl2.h"
-
-namespace cc {
-
-Tile::Tile(TileManager* tile_manager,
- PicturePileImpl* picture_pile,
- gfx::Size tile_size,
- GLenum format,
- gfx::Rect content_rect,
- gfx::Rect opaque_rect,
- float contents_scale,
- int layer_id)
- : tile_manager_(tile_manager),
- tile_size_(tile_size),
- format_(format),
- content_rect_(content_rect),
- contents_scale_(contents_scale),
- opaque_rect_(opaque_rect),
- layer_id_(layer_id) {
- set_picture_pile(picture_pile);
- tile_manager_->RegisterTile(this);
-}
-
-Tile::~Tile() {
- tile_manager_->UnregisterTile(this);
-}
-
-scoped_ptr<base::Value> Tile::AsValue() const {
- scoped_ptr<base::DictionaryValue> res(new base::DictionaryValue());
- res->SetString("id", base::StringPrintf("%p", this));
- res->SetString("picture_pile", base::StringPrintf("%p",
- picture_pile_.get()));
- res->SetDouble("contents_scale", contents_scale_);
- res->Set("priority.0", priority_[ACTIVE_TREE].AsValue().release());
- res->Set("priority.1", priority_[PENDING_TREE].AsValue().release());
- res->Set("managed_state", managed_state_.AsValue().release());
- return res.PassAs<base::Value>();
-}
-
-void Tile::SetPriority(WhichTree tree, const TilePriority& priority) {
- tile_manager_->WillModifyTilePriority(this, tree, priority);
- priority_[tree] = priority;
-}
-
-} // namespace cc
« no previous file with comments | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698