ProfileRenderer.cpp revision de97307362c26b64e2376b21ccde8414088cdc8b
13b20251a355c88193c439f928a84ae69483fb488John Reck/* 23b20251a355c88193c439f928a84ae69483fb488John Reck * Copyright (C) 2016 The Android Open Source Project 33b20251a355c88193c439f928a84ae69483fb488John Reck * 43b20251a355c88193c439f928a84ae69483fb488John Reck * Licensed under the Apache License, Version 2.0 (the "License"); 53b20251a355c88193c439f928a84ae69483fb488John Reck * you may not use this file except in compliance with the License. 63b20251a355c88193c439f928a84ae69483fb488John Reck * You may obtain a copy of the License at 73b20251a355c88193c439f928a84ae69483fb488John Reck * 83b20251a355c88193c439f928a84ae69483fb488John Reck * http://www.apache.org/licenses/LICENSE-2.0 93b20251a355c88193c439f928a84ae69483fb488John Reck * 103b20251a355c88193c439f928a84ae69483fb488John Reck * Unless required by applicable law or agreed to in writing, software 113b20251a355c88193c439f928a84ae69483fb488John Reck * distributed under the License is distributed on an "AS IS" BASIS, 123b20251a355c88193c439f928a84ae69483fb488John Reck * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133b20251a355c88193c439f928a84ae69483fb488John Reck * See the License for the specific language governing permissions and 143b20251a355c88193c439f928a84ae69483fb488John Reck * limitations under the License. 153b20251a355c88193c439f928a84ae69483fb488John Reck */ 1638e0c32852e3b9d8ca4a9d3791577f52536419cbJohn Reck 1796a5c4c7bab6718524de7253da8309143ab48befChris Craik#include "ProfileRenderer.h" 183b20251a355c88193c439f928a84ae69483fb488John Reck 19443a714fa7c0dd07fee3527cc5bc3d3ca1fb7d44John Recknamespace android { 200e89e2b7bcb2c035e8cee77f93120e7c5617f8d2John Recknamespace uirenderer { 21117bdbcfa3e8306dad21e7e01fa71b00cdfa7265Chris Craik 229db58c031f8ffa102a6d585cb585bed3bdb911a9Chris Craikvoid ProfileRenderer::drawRect(float left, float top, float right, float bottom, 239db58c031f8ffa102a6d585cb585bed3bdb911a9Chris Craik const SkPaint& paint) { 243b20251a355c88193c439f928a84ae69483fb488John Reck mRenderer.drawRect(left, top, right, bottom, &paint); 253b20251a355c88193c439f928a84ae69483fb488John Reck} 263b20251a355c88193c439f928a84ae69483fb488John Reck 270e89e2b7bcb2c035e8cee77f93120e7c5617f8d2John Reckvoid ProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { 280e89e2b7bcb2c035e8cee77f93120e7c5617f8d2John Reck mRenderer.drawRects(rects, count, &paint); 293b20251a355c88193c439f928a84ae69483fb488John Reck} 303b20251a355c88193c439f928a84ae69483fb488John Reck 313b20251a355c88193c439f928a84ae69483fb488John Reckuint32_t ProfileRenderer::getViewportWidth() { 320e89e2b7bcb2c035e8cee77f93120e7c5617f8d2John Reck return mRenderer.getViewportWidth(); 333b20251a355c88193c439f928a84ae69483fb488John Reck} 343b20251a355c88193c439f928a84ae69483fb488John Reck 353b20251a355c88193c439f928a84ae69483fb488John Reckuint32_t ProfileRenderer::getViewportHeight() { 3644eb2c00861098dd3e2950d923646814b4cc57c2Chris Craik return mRenderer.getViewportHeight(); 3796a5c4c7bab6718524de7253da8309143ab48befChris Craik} 383b20251a355c88193c439f928a84ae69483fb488John Reck 393b20251a355c88193c439f928a84ae69483fb488John Reck} /* namespace uirenderer */ 403b20251a355c88193c439f928a84ae69483fb488John Reck} /* namespace android */ 4144eb2c00861098dd3e2950d923646814b4cc57c2Chris Craik