public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] common/lcd_console: introduce display/framebuffer rotation
Date: Mon, 16 Mar 2015 18:48:45 +0200	[thread overview]
Message-ID: <5507096D.7030702@compulab.co.il> (raw)
In-Reply-To: <5506C000.50302@compulab.co.il>

On 03/16/2015 01:35 PM, Igor Grinberg wrote:
> On 03/16/15 10:32, Hannes Petermaier wrote:
>>
>> 2)
>> I need in almost every "paint-function" the framebuffer base
>> (cons.lcd_address) and the screen dimension.
>> This information is stored in the static structure within lcd.c - i don't
>> like to make this public.
>> A possible solution could be to change all painting function to work
>> without some global variable and pass
>> a third argument, pointer to console_t, and take informations from there.
>> This will consume one more register
>> on function call, runtime is equal i think.
>>
>> Whats your opinion around this ?
>
> Well, since Nikita is working on refactoring the lcd.c stuff and
> already examined several aproaches, I think he can provide a better
> opinion on this.
> Nikita?

I think that passing a pointer to console_t is the way to go. You have an
object oriented design here, and that's the object oriented way of accessing
the object's members from its methods.

-- 
Regards,
Nikita Kiryanov

  reply	other threads:[~2015-03-16 16:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 12:57 [U-Boot] [PATCH 0/4] Introduce lcd_console rotation Hannes Petermaier
2015-03-11 12:57 ` [U-Boot] [PATCH 1/4] common/lcd_console: cleanup lcd_drawchars/lcd_putc_xy Hannes Petermaier
2015-03-15 18:56   ` Nikita Kiryanov
2015-03-11 12:57 ` [U-Boot] [PATCH 2/4] common/lcd_console: ask only one-time for bg/fg-color per call Hannes Petermaier
2015-03-15 18:54   ` Nikita Kiryanov
2015-03-11 12:57 ` [U-Boot] [PATCH 3/4] common/lcd_console: move single static variables into common (static) structure Hannes Petermaier
2015-03-15 18:57   ` Nikita Kiryanov
2015-03-16  6:32     ` Hannes Petermaier
2015-03-11 12:57 ` [U-Boot] [PATCH 4/4] common/lcd_console: introduce display/framebuffer rotation Hannes Petermaier
2015-03-12 12:26   ` Igor Grinberg
2015-03-12 16:46     ` Hannes Petermaier
2015-03-15  8:34       ` Igor Grinberg
2015-03-16  8:32         ` Hannes Petermaier
2015-03-16 11:35           ` Igor Grinberg
2015-03-16 16:48             ` Nikita Kiryanov [this message]
2015-03-15 18:56   ` Nikita Kiryanov
2015-03-16  6:47     ` Hannes Petermaier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5507096D.7030702@compulab.co.il \
    --to=nikita@compulab.co.il \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox