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

Side by Side Diff: cc/tiles/tile_manager_perftest.cc

Issue 1174733003: cc, gpu: Use RGBA when using msaa on systems that don't support BGRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 5 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/location.h" 5 #include "base/location.h"
6 #include "base/thread_task_runner_handle.h" 6 #include "base/thread_task_runner_handle.h"
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "cc/debug/lap_timer.h" 8 #include "cc/debug/lap_timer.h"
9 #include "cc/raster/raster_buffer.h" 9 #include "cc/raster/raster_buffer.h"
10 #include "cc/test/begin_frame_args_test.h" 10 #include "cc/test/begin_frame_args_test.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 RasterTask* task = it->get(); 57 RasterTask* task = it->get();
58 58
59 task->WillComplete(); 59 task->WillComplete();
60 task->CompleteOnOriginThread(this); 60 task->CompleteOnOriginThread(this);
61 task->DidComplete(); 61 task->DidComplete();
62 62
63 task->RunReplyOnOriginThread(); 63 task->RunReplyOnOriginThread();
64 } 64 }
65 completed_tasks_.clear(); 65 completed_tasks_.clear();
66 } 66 }
67 ResourceFormat GetResourceFormat() override { 67 ResourceFormat GetResourceFormat() const override { return RGBA_8888; }
68 return RGBA_8888; 68 bool GetResourceRequiresSwizzle() const override {
69 return !PlatformColor::SameComponentOrder(GetResourceFormat());
69 } 70 }
70 71
71 // Overridden from TileTaskClient: 72 // Overridden from TileTaskClient:
72 scoped_ptr<RasterBuffer> AcquireBufferForRaster( 73 scoped_ptr<RasterBuffer> AcquireBufferForRaster(
73 const Resource* resource, 74 const Resource* resource,
74 uint64_t new_content_id, 75 uint64_t new_content_id,
75 uint64_t previous_content_id) override { 76 uint64_t previous_content_id) override {
76 return nullptr; 77 return nullptr;
77 } 78 }
78 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} 79 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {}
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); 481 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64);
481 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 482 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
482 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 483 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
483 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 484 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
484 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 485 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
485 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 486 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
486 } 487 }
487 488
488 } // namespace 489 } // namespace
489 } // namespace cc 490 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698