1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 from telemetry
.page
import page
as page_module
5 from telemetry
import story
7 class ImageDecodingCasesPage(page_module
.Page
):
9 def __init__(self
, url
, page_set
):
10 super(ImageDecodingCasesPage
, self
).__init
__(url
=url
, page_set
=page_set
)
12 def RunPageInteractions(self
, action_runner
):
13 with action_runner
.CreateInteraction('DecodeImage'):
16 class ImageDecodingCasesPageSet(story
.StorySet
):
18 """ A directed benchmark of accelerated jpeg image decoding performance """
21 super(ImageDecodingCasesPageSet
, self
).__init
__()
24 'file://image_decoding_cases/yuv_decoding.html'
28 self
.AddStory(ImageDecodingCasesPage(url
, self
))